From 02b7c960947c4a33af50a9829edf73e5d4c32ffc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Dec 2015 13:14:01 -0500 Subject: tools/shpp.sh: Add error() function --- diff --git a/tools/shpp.sh b/tools/shpp.sh index c54c7b7..891f9bd 100755 --- a/tools/shpp.sh +++ b/tools/shpp.sh @@ -31,6 +31,14 @@ die() exit 2 } +error() +{ + local fmt="${1}" + shift 1 + + printf "shpp: ${fmt}\n" "${@}" +} + preprocess() { local vars="${1}" -- cgit v0.9.1