diff --git a/lib/ramdisk-functions b/lib/ramdisk-functions index a8b249c9c..c35c3b61d 100644 --- a/lib/ramdisk-functions +++ b/lib/ramdisk-functions @@ -40,8 +40,7 @@ function ensure_binaries() { done for _BIN in $BINARY_DEPS ; do - _LOCATION="" - _LOCATION="${_LOCATION:-$(which $_BIN)}" + _LOCATION=$(which "$_BIN" || echo "") if [ -z "$_LOCATION" ]; then echo "$_BIN is not found in your PATH" 1>&2 echo "Please install it on your system"