Add sit_warn to output warnings.
This commit is contained in:
parent
81ae955db4
commit
3ed1792050
2 changed files with 5 additions and 1 deletions
|
@ -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
2
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"
|
||||
|
|
Loading…
Reference in a new issue