tinyramfs: fix regression in copy_binary()

This commit is contained in:
illiliti 2021-05-12 15:24:57 +03:00
parent d7991ea80b
commit a5e572c0c3

View File

@ -179,11 +179,13 @@ copy_binary()
*)
IFS=:; set -- $PATH; unset IFS
_binary="$binary"
for _dir; do
binary="${_dir}/${binary}"
binary="${_dir}/${_binary}"
[ -x "$binary" ] && break
done || panic "$1 does not exist"
done || panic "$_binary does not exist"
;;
esac