Pipe replase '<<<' syntax for more compatibility
This commit is contained in:
parent
16795b3449
commit
8af4243f62
2
bwifi.sh
2
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
|
||||
|
|
Loading…
Reference in a new issue