Browse Source

Update syno_hdd_db.sh

Fixed version check
develop
007revad 3 years ago
committed by GitHub
parent
commit
d45ae58e84
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      syno_hdd_db.sh

3
syno_hdd_db.sh

@ -73,7 +73,8 @@ get_latest_release() {
tag=$(get_latest_release "007revad/Synology_HDD_db")
if [[ ${tag:1} > "$scriptver" ]]; then
if ! printf "%s\n%s\n" "$tag" "$scriptver" |
sort --check --version-sort &> /dev/null ; then
echo "There is a newer version of this script available."
echo -e "Current version: ${scriptver}\nLatest version: ${tag:1}"
echo "https://github.com/007revad/Synology_HDD_db/releases/latest"

Loading…
Cancel
Save