From c386aaeff5348ac4bd2bf0de30e69e60d9f15931 Mon Sep 17 00:00:00 2001 From: Vladimir Kirillov Date: Wed, 13 Apr 2016 15:16:43 +0300 Subject: [PATCH] wrap -x into [[ ]] --- create_ap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ap b/create_ap index 4ab74b4..0cbb648 100755 --- a/create_ap +++ b/create_ap @@ -1294,7 +1294,7 @@ fi HOSTAPD=$(which hostapd) -if ! -x "$HOSTAPD"; then +if [[ ! -x "$HOSTAPD" ]]; then echo "ERROR: hostapd not found." >&2 exit 1 fi