diff --git a/CHANGES.txt b/CHANGES.txt index 069f4c5..2194683 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v1.2.31 +- Bug fix. The --noupdate option was coded as --nodbupdate. Now either will work. + v1.2.30 - Fixed "download new version" failing if script was run via symlink or ./ diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 24d9cf0..7d004d0 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -92,7 +92,7 @@ # Optionally disable "support_disk_compatibility". -scriptver="v1.2.30" +scriptver="v1.2.31" script=Synology_HDD_db repo="007revad/Synology_HDD_db" @@ -143,14 +143,14 @@ EOF # Check for flags with getopt if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -a \ - -l showedits,noupdate,m2,force,ram,help,version,debug -- "$@")"; then + -l showedits,noupdate,nodbupdate,m2,force,ram,help,version,debug -- "$@")"; then eval set -- "$options" while true; do case "${1,,}" in -s|--showedits) # Show edits done to host db file showedits=yes ;; - -n|--nodbupdate) # Disable disk compatibility db updates + -n|--nodbupdate|--noupdate) # Disable disk compatibility db updates nodbupdate=yes ;; -m|--m2) # Don't add M.2 drives to db files