tinyramfs: fix regression in copy_binary()
This commit is contained in:
parent
d7991ea80b
commit
a5e572c0c3
@ -179,11 +179,13 @@ copy_binary()
|
|||||||
*)
|
*)
|
||||||
IFS=:; set -- $PATH; unset IFS
|
IFS=:; set -- $PATH; unset IFS
|
||||||
|
|
||||||
|
_binary="$binary"
|
||||||
|
|
||||||
for _dir; do
|
for _dir; do
|
||||||
binary="${_dir}/${binary}"
|
binary="${_dir}/${_binary}"
|
||||||
|
|
||||||
[ -x "$binary" ] && break
|
[ -x "$binary" ] && break
|
||||||
done || panic "$1 does not exist"
|
done || panic "$_binary does not exist"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user