Pipe replase '<<<' syntax for more compatibility

This commit is contained in:
leafee98 2023-02-27 09:08:29 +08:00
parent 16795b3449
commit 8af4243f62

View file

@ -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