Browse Source

Update syno_hdd_db.sh

- Bug fix when script updates itself and user ran the script from ./scriptname.sh
pull/235/head
Dave Russell 2 years ago
committed by GitHub
parent
commit
00f6223f26
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      syno_hdd_db.sh

4
syno_hdd_db.sh

@ -27,7 +27,7 @@
# Now warns if script is located on an M.2 volume.
scriptver="v3.4.83"
scriptver="v3.4.84"
script=Synology_HDD_db
repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db
@ -456,7 +456,7 @@ if ! printf "%s\n%s\n" "$tag" "$scriptver" |
# Reload script
printf -- '-%.0s' {1..79}; echo # print 79 -
exec "$0" "${args[@]}"
exec "${scriptpath}/$scriptfile" "${args[@]}"
else
syslog_set warn "$script update to $tag had errors"
fi

Loading…
Cancel
Save