mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-10 21:03:09 +02:00
Surpress error on clean old backups from temp (#1413)
Added the -f option to the rm of old backups, as the resulting error message "No such file or directory" (if no files were deleted) might be confusing to others and seen as a problem.
This commit is contained in:
@@ -76,7 +76,7 @@ if [ "$1" = "export" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# clean old backups from temp
|
# clean old backups from temp
|
||||||
rm /hdd/temp/raspiblitz-*.tar.gz 2>/dev/null
|
rm -f /hdd/temp/raspiblitz-*.tar.gz 2>/dev/null
|
||||||
|
|
||||||
# get date stamp
|
# get date stamp
|
||||||
datestamp=$(date "+%y-%m-%d-%H-%M")
|
datestamp=$(date "+%y-%m-%d-%H-%M")
|
||||||
@@ -410,4 +410,4 @@ if [ "$1" = "import-gui" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "error='unkown command'"
|
echo "error='unkown command'"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user