From 34260130469ff32e895ca00074470caf7a81e3f3 Mon Sep 17 00:00:00 2001 From: PJ Kim Date: Fri, 13 Jun 2014 10:09:18 +0900 Subject: [PATCH] implemented `die` function in bash-template --- .../com/typesafe/sbt/packager/archetypes/bash-template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template index 63152d31d..01d8fa162 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template @@ -4,6 +4,11 @@ ### Helper methods for BASH scripts ### ### ------------------------------- ### +die() { + echo "$@" 1>&2 + exit 1 +} + realpath () { ( TARGET_FILE="$1"