diff --git a/CHANGES.txt b/CHANGES.txt index 05f4954..f01bac7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,9 @@ +v2.2.45 +- Minor bug fix. + v2.2.44 - Added --restore info to --help -- Updated restore option to download the latest db files from Synology +- Updated restore option to download the latest db files from Synology. - Now warns you if you try to run it in sh with "sh scriptname.sh" v2.2.43 diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 301bcc0..5269e67 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -149,7 +149,7 @@ # Optionally disable "support_disk_compatibility". -scriptver="v2.2.44" +scriptver="v2.2.45" script=Synology_HDD_db repo="007revad/Synology_HDD_db" @@ -478,8 +478,8 @@ if [[ $restore == "yes" ]]; then done # Delete any .dbr and .db.newr files left by previous script versions - for f in "${dbpath}"*dbr; do rm "$f"; done - for f in "${dbpath}"*db.newr; do rm "$f"; done + for f in "${dbpath}"*dbr; do rm "$f" >/dev/null; done + for f in "${dbpath}"*db.newr; do rm "$f">/dev/null; done # Update .db files from Synology syno_disk_db_update --update