From 8af4243f622bcb52f2e5be3345e282fd7cbad4d0 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 27 Feb 2023 09:08:29 +0800 Subject: [PATCH] Pipe replase '<<<' syntax for more compatibility --- bwifi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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