summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-05-02 14:06:26 +0200
committerEUcancER <root@euer.krebsco.de>2012-05-02 14:06:26 +0200
commitfd50c8c919b53d7237179970224608c34075a12d (patch)
treee91f993f666f9cf8bbdddcc5c85d03a4cd2be3e6 /Reaktor/commands
parentf24f22f9d23ba525663a85ccfe5194b70e2f2364 (diff)
fix whatweb wrapper
Diffstat (limited to 'Reaktor/commands')
-rwxr-xr-xReaktor/commands/whatweb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Reaktor/commands/whatweb b/Reaktor/commands/whatweb
index 1c1d7791..c9aab295 100755
--- a/Reaktor/commands/whatweb
+++ b/Reaktor/commands/whatweb
@@ -1,5 +1,7 @@
#!/bin/sh
#wrapper for WhatWeb
-whatweb_bin='../repos/whatweb/whatweb'
-[ -e "$whatweb_bin" ] || ( echo "Whatweb app does not exist" && exit 1 )
+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)
$whatweb_bin "$1"