mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-15 12:40:47 +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:
parent
59dae5bda4
commit
c84ed5ca16
@ -76,7 +76,7 @@ if [ "$1" = "export" ]; then
|
||||
fi
|
||||
|
||||
# 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
|
||||
datestamp=$(date "+%y-%m-%d-%H-%M")
|
||||
|
Loading…
Reference in New Issue
Block a user