diff options
author | makefu <github@syntax-fehler.de> | 2013-04-29 13:39:54 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-04-29 13:39:54 +0200 |
commit | b0273180da89e11cd6a7346ed1a72e9f17fbf230 (patch) | |
tree | b4dbfa157032ce5168099a552d0280764cbb505f /Reaktor/commands | |
parent | 5266540d4c21494adbac3f25f982f2bf32390734 (diff) | |
parent | 5d904ef7620cda3355b601793441fc804ff506a9 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'Reaktor/commands')
-rwxr-xr-x | Reaktor/commands/whatweb | 6 |
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 |