Add sit_warn to output warnings.

This commit is contained in:
Christoph Niethammer 2016-05-03 06:52:22 +00:00
parent 81ae955db4
commit 3ed1792050
2 changed files with 5 additions and 1 deletions

View file

@ -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

2
sit
View file

@ -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"