From 9cdcc9df8c2fdd8643274cc2b36ebfde21b32e5d Mon Sep 17 00:00:00 2001 From: Slater-Victoroff Date: Thu, 30 May 2013 14:52:15 -0400 Subject: [PATCH] Bringing the create-dev-env.sh script up to date and generalizing for mac and debian-based systems --- scripts/create-dev-env.sh | 67 ++++++++++++++++++++++++++--------- scripts/install-system-req.sh | 5 +-- 2 files changed, 54 insertions(+), 18 deletions(-) diff --git a/scripts/create-dev-env.sh b/scripts/create-dev-env.sh index d387465c49..a8c7299612 100755 --- a/scripts/create-dev-env.sh +++ b/scripts/create-dev-env.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +#Exit if any commands return a non-zero status set -e # posix compliant sanity check @@ -27,10 +29,17 @@ EOL } +#Setting error color to red before reset error() { printf '\E[31m'; echo "$@"; printf '\E[0m' } +#Setting warning color to magenta before reset +warning() { + printf '\E[35m'; echo "$@"; printf '\E[0m' +} + +#Setting output color to cyan before reset output() { printf '\E[36m'; echo "$@"; printf '\E[0m' } @@ -51,7 +60,7 @@ EO info() { cat<