summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands/whatweb
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-04-24 20:44:30 +0200
committermakefu <github@syntax-fehler.de>2013-04-24 20:44:30 +0200
commit7fdb1fca9089f400a7938573cb4398db78c6628d (patch)
tree248d2626a379d931a7b52c30a81384fc11b7dfc7 /Reaktor/commands/whatweb
parent9f38a2b96abb3fdc4cce5ef23c791728268b7b6f (diff)
parent57fb05c0512f9c12ff56924cdc0d835f1999754a (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Reaktor/commands/whatweb')
-rwxr-xr-xReaktor/commands/whatweb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Reaktor/commands/whatweb b/Reaktor/commands/whatweb
index 84130d5c..afe20360 100755
--- a/Reaktor/commands/whatweb
+++ b/Reaktor/commands/whatweb
@@ -2,6 +2,6 @@
#wrapper for WhatWeb
here=$(dirname `readlink -f $0`)
whatweb_bin="$here/../repos/whatweb/whatweb"
-[ -e "$whatweb_bin" ] || ( echo "!! Whatweb app does not exist" && exit 1 )
-[ "balls$1" = "balls" ] && ( echo "!! no host given" && exit 1)
-exec $whatweb_bin -a 3 "$1"
+[ ! -e "$whatweb_bin" ] && echo "!! Whatweb app does not exist" && exit 1
+[ -z "${1:-}" ] && echo "!! no host given" && exit 1
+exec $whatweb_bin -a 3 "$1" 2>&1