From 7eba4293714b9dce86c07ccf2fdaddaa11a4c3c7 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 28 Aug 2015 23:39:37 +0200 Subject: Reaktor: add nix support, packaging --- reaktor/commands/whatweb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 reaktor/commands/whatweb (limited to 'reaktor/commands/whatweb') diff --git a/reaktor/commands/whatweb b/reaktor/commands/whatweb new file mode 100755 index 0000000..36711ef --- /dev/null +++ b/reaktor/commands/whatweb @@ -0,0 +1,17 @@ +#!/bin/sh +#wrapper for WhatWeb +set -eu + +# whatweb is in path? +whatweb=whatweb +if ! type -p whatweb >/dev/null 2>&1 ;then + here=$(dirname `readlink -f $0`) + whatweb="$here/../repos/whatweb/whatweb" + if ! test -e "$whatweb" then + echo "!! cannot find usable whatweb installation in path or basedir ($whatweb)" + exit 1 + fi +fi + +[ -z "${1:-}" ] && echo "!! no host given" && exit 1 +exec $whatweb_bin --user-agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0" -a 3 "$1" 2>&1 -- cgit v1.2.3