Skip to content

Commit

Permalink
template script: use bash and require ed
Browse files Browse the repository at this point in the history
For now these scripts only work in bash, and the "ed" program
is required.
  • Loading branch information
jasonish authored and victorjulien committed Jan 24, 2017
1 parent 1abaf1c commit f738062
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/setup-app-layer-detect.sh
@@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
#
# Script to provision a new application layer detector and parser.

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-app-layer-logger.sh
@@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash

set -e

Expand Down
8 changes: 7 additions & 1 deletion scripts/setup-app-layer.sh
@@ -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
Expand Down

0 comments on commit f738062

Please sign in to comment.