From 1c154b2554123ff1a39d1e99283204b41b3b5525 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 23 Aug 2017 23:35:26 -0400 Subject: [PATCH] Update sh template --- vim/templates/skeleton.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vim/templates/skeleton.sh b/vim/templates/skeleton.sh index 3b96a03..fcfd4c1 100644 --- a/vim/templates/skeleton.sh +++ b/vim/templates/skeleton.sh @@ -19,6 +19,15 @@ else NORMAL="" fi +error() { + printf "${BOLD}${RED}$1${NORMAL}" +} + +abort() { + error "\nAborting...\n" + exit 1 +} + set -e cwd=$PWD