diff --git a/contrib/mkimage-arch.sh b/contrib/mkimage-arch.sh index 41070aedb1..da11750c03 100755 --- a/contrib/mkimage-arch.sh +++ b/contrib/mkimage-arch.sh @@ -4,14 +4,12 @@ # requires root set -e -PACSTRAP=$(hash pacstrap &>/dev/null) -[ "$PACSTRAP" ] || { +hash pacstrap &>/dev/null || { echo "Could not find pacstrap. Run pacman -S arch-install-scripts" exit 1 } -EXPECT=$(hash expect &>/dev/null) -[[ "$EXPECT" ]] || { +hash expect &>/dev/null || { echo "Could not find expect. Run pacman -S expect" exit 1 }