diff --git a/bwifi.sh b/bwifi.sh index 7d276ee..1aa7b45 100755 --- a/bwifi.sh +++ b/bwifi.sh @@ -14,7 +14,7 @@ echo 'response received' # If authorizing is requested, school network will respond any HTTP (not HTTPS) request with an 302 # response and its "Server" field is "DrcomServer" -if ! grep "Server: DrcomServer" <<< $res_headers ; then +if ! echo -n "$res_headers" | grep "Server: DrcomServer" ; then echo "didn't receive a response from DrcomServer, you may already be online." exit 1 fi