Skip to content

Commit b577c84

Browse files
Update dateTimeCorrect.sh
1 parent ddce258 commit b577c84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/dateTimeCorrect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ $DATETIME_DIFFERENCE = 0 ]; then
1010
echo "$(date +"%Y-%m-%d %H:%M:%S.%3N") ${HOSTNAME}: The datetime.xml is the updated version. No correction necessary..."
1111
else
1212
echo "$(date +"%Y-%m-%d %H:%M:%S.%3N") ${HOSTNAME}: The datetime.xml file needs to be updated. Updating..."
13-
cp $EXISTING_DATETIME $EXISTING_DATETIME.$(date +"%m%d%Y")
13+
mv $EXISTING_DATETIME $EXISTING_DATETIME.$(date +"%m%d%Y")
1414
cp $REFERENCE_DATETIME $EXISTING_DATETIME
1515
touch $RESTART_DATETIME_CHECK
16-
fi
16+
fi

0 commit comments

Comments
 (0)