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"
|
echo "$msg"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
sit_warn() {
|
||||||
|
msg=$1
|
||||||
|
echo "SIT: Warning: " $msg
|
||||||
|
}
|
||||||
sit_info() {
|
sit_info() {
|
||||||
msg=$1
|
msg=$1
|
||||||
echo "SIT: " $msg
|
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
|
# identify platform manually if no environment variable was set
|
||||||
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}
|
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}
|
||||||
if [ -z $PLATFORM ]; then
|
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}"
|
PLATFORM="${DEFAULT_PLATFORM}"
|
||||||
fi
|
fi
|
||||||
sit_info "Platform: $PLATFORM"
|
sit_info "Platform: $PLATFORM"
|
||||||
|
|
Loading…
Reference in a new issue