From 06becc51817c0519902450e96f7bed304e5f087b Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 9 Jun 2017 11:49:13 +0200 Subject: [PATCH] Updated ofunctions --- dev/ofunctions.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index c9d7f78..58377fe 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -3,7 +3,7 @@ #### OFUNCTIONS MINI SUBSET #### _OFUNCTIONS_VERSION=2.1.4-rc1 -_OFUNCTIONS_BUILD=2017060901 +_OFUNCTIONS_BUILD=2017060903 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -403,9 +403,7 @@ function SendAlert { fi eval "cat \"$LOG_FILE\" $COMPRESSION_PROGRAM > $ALERT_LOG_FILE" - ALERT_LOG_FILE="$ALERT_LOG_FILE$COMPRESSION_EXTENSION" if [ $? != 0 ]; then - Logger "Cannot create [$ALERT_LOG_FILE]" "WARN" attachment=false else attachment=true @@ -1715,6 +1713,10 @@ function SetCompression { COMPRESSION_EXTENSION= fi fi + + if [ ".${ALERT_LOG_FILE##*.}" != "$COMPRESSION_EXTENSION" ]; then + ALERT_LOG_FILE="$ALERT_LOG_FILE$COMPRESSION_EXTENSION" + fi } function InitLocalOSDependingSettings {