wrap -x into [[ ]]

This commit is contained in:
Vladimir Kirillov
2016-04-13 15:16:43 +03:00
parent 0b87fde89c
commit c386aaeff5

View File

@ -1294,7 +1294,7 @@ fi
HOSTAPD=$(which hostapd) HOSTAPD=$(which hostapd)
if ! -x "$HOSTAPD"; then if [[ ! -x "$HOSTAPD" ]]; then
echo "ERROR: hostapd not found." >&2 echo "ERROR: hostapd not found." >&2
exit 1 exit 1
fi fi