From 8848d6e1028235929602f593058d6c4fae18f5fb Mon Sep 17 00:00:00 2001 From: elicro Date: Tue, 14 Dec 2021 00:08:18 +0200 Subject: [PATCH] Update 'cron-example-with-diff-dstdom.sh' --- cron-example-with-diff-dstdom.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron-example-with-diff-dstdom.sh b/cron-example-with-diff-dstdom.sh index 6265c17..94d2906 100755 --- a/cron-example-with-diff-dstdom.sh +++ b/cron-example-with-diff-dstdom.sh @@ -140,6 +140,7 @@ fi TMP_DOWNLOAD_FILE=$(mktemp) +# The next is to avoid missing new line in the end of the file in some cases /opt/fw1/bin/curl_cli -s --cacert "${SSL_CERT_FILE}" "${URL}" -o "${TMP_DOWNLOAD_FILE}" >> /tmp/log.1 RES="$?" if [ "${RES}" -gt "0" ];then @@ -149,6 +150,8 @@ if [ "${RES}" -gt "0" ];then rm -fv "${LOCK_FILE}" exit ${RES} fi +# The next is to avoid missing new line in the end of the file in some cases +echo "" >> "${TMP_DOWNLOAD_FILE}" TMP_CLISH_UPDATE_FILE=$( mktemp )