From: Jason Ish Date: Sun, 1 Oct 2017 09:41:29 +0000 (+0100) Subject: template scripts: allow to be called from top or src X-Git-Tag: suricata-4.0.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1ac839333edbfd5de3975a4f64b2168960c0296;p=thirdparty%2Fsuricata.git template scripts: allow to be called from top or src Allow the template setup script to be called from the top source directory or from ./src to unify where they can be executed from. --- diff --git a/scripts/setup-app-layer-detect.sh b/scripts/setup-app-layer-detect.sh index c420e7086b..abfa4978c5 100755 --- a/scripts/setup-app-layer-detect.sh +++ b/scripts/setup-app-layer-detect.sh @@ -4,6 +4,12 @@ set -e +# Fail if "ed" is not available. +if ! which ed > /dev/null 2>&1; then + echo "error: the program \"ed\" is required for this script" + exit 1 +fi + function usage() { cat < /dev/null 2>&1; then + echo "error: the program \"ed\" is required for this script" + exit 1 +fi + function usage() { cat <