Add date to logs

This commit is contained in:
Christian Wolf 2024-05-09 15:39:57 +02:00
parent 7f44d12134
commit 7e4c176011

View File

@ -134,6 +134,7 @@ then
fi fi
echo "The backup script is triggered." echo "The backup script is triggered."
date
while read line while read line
do do
@ -146,6 +147,9 @@ do
fi fi
done <<< $(cat "$repoFile" | grep -v '^#' | sed '/^\W*$/d') done <<< $(cat "$repoFile" | grep -v '^#' | sed '/^\W*$/d')
echo "All sync scripts have been run."
date
if [ -n "$dryRun" ] if [ -n "$dryRun" ]
then then
echo "Not updating the trigger timestamp. The value would be $(getNextDate)." echo "Not updating the trigger timestamp. The value would be $(getNextDate)."