From: Steven Baltakatei Sandoval Date: Wed, 1 Jul 2020 21:18:02 +0000 (+0000) Subject: chore(bkgpslog):Add timestamp to version content. X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/6dc001d197f7074ee9258c34f20c3aa67e2bc6eb?ds=inline;hp=9efeccb59ffdf317ee26669fb44bfbbf7e879ff6 chore(bkgpslog):Add timestamp to version content. --- diff --git a/exec/bkgpslog b/exec/bkgpslog index 0305303..1600716 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -698,7 +698,7 @@ main() { PATHOUT_TAR="$DIR_OUT"/"$(dateShort)".."$SCRIPT_HOSTNAME""_location""$CMD_COMPRESS_SUFFIX""$CMD_ENCRYPT_SUFFIX".tar && \ vbm "STATUS:Set PATHOUT_TAR to:$PATHOUT_TAR"; ## Write bkgpslog version to DIR_TMP/VERSION - echo "$0"" Version:""$SCRIPT_VERSION" >> "$DIR_TMP/VERSION" && vbm "DEBUG:VERSION created."; + echo "$(dateTimeShort):$(basename "$0")"" Version:""$SCRIPT_VERSION" >> "$DIR_TMP/VERSION" && vbm "DEBUG:VERSION created."; ## Check if PATHOUT_TAR already exists. if [[ -f "$PATHOUT_TAR" ]]; then vbm "STATUS:Output tar already exists:$PATHOUT_TAR";