summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands/whatweb
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-05-03 23:44:58 +0200
committerYour Name <you@example.com>2013-05-03 23:44:58 +0200
commitbdc1e03a956e560ab3373436bc54d119efeb5086 (patch)
treec476636a62950a9303d3d55ae9f903a3584dc940 /Reaktor/commands/whatweb
parentab9954b0418e7473debd7fd311ed0c86bd599d59 (diff)
parentbb2c3ab8682316583e6866200678494965f81719 (diff)
Merge branch 'master' of https://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