template script: use bash and require ed

For now these scripts only work in bash, and the "ed" program
is required.
pull/2516/head
Jason Ish 9 years ago committed by Victor Julien
parent 1abaf1c96d
commit f73806211a

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
#
# Script to provision a new application layer detector and parser.

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
set -e

@ -1,10 +1,16 @@
#! /bin/sh
#! /usr/bin/env bash
#
# Script to provision a new application layer detector and parser.
set -e
#set -x
# Fail if "ed" is not available.
if ! which edx > /dev/null 2>&1; then
echo "error: the program \"ed\" is required for this script"
exit 1
fi
function usage() {
cat <<EOF

Loading…
Cancel
Save