From 3ed1792050b2049a2c7e95b188b1966ca40b41c4 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 3 May 2016 06:52:22 +0000 Subject: [PATCH] Add sit_warn to output warnings. --- functions.sh | 4 ++++ sit | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index eba7e1d..03c8980 100644 --- a/functions.sh +++ b/functions.sh @@ -3,6 +3,10 @@ sit_fail() { echo "$msg" exit 1 } +sit_warn() { + msg=$1 + echo "SIT: Warning: " $msg +} sit_info() { msg=$1 echo "SIT: " $msg diff --git a/sit b/sit index c0b9a6c..e8fd96f 100755 --- a/sit +++ b/sit @@ -78,7 +78,7 @@ source "$SIT_PATH/functions.sh" # identify platform manually if no environment variable was set PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME} if [ -z $PLATFORM ]; then - sit_info "Unknown platform using default platform '${DEFAULT_PLATFORM}' configuration" + sit_warn "Unknown platform using default platform '${DEFAULT_PLATFORM}' configuration" PLATFORM="${DEFAULT_PLATFORM}" fi sit_info "Platform: $PLATFORM"