We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f55a30 commit 2200b04Copy full SHA for 2200b04
check.sh
@@ -23,7 +23,11 @@ do
23
if ! [[ "$url_output" =~ ^('Hello World!')(.*)(([0-9]*):(([0-9]+([.][0-9]*)?|[.][0-9]+)):([0-9]*))$ ]]; then
24
echo -e "${RED}${ERROR} $fw ${NC}"
25
echo "$url"
26
- echo "$url_output" | w3m -dump -T text/html
+ if [ -x "$(command -v w3m)" ]; then
27
+ echo "$url_output" | w3m -dump -T text/html
28
+ else
29
+ echo "$url_output"
30
+ fi
31
FAIL=1
32
else
33
echo -e "${GREEN}${OK} $fw ${NC}"
0 commit comments