lidarr: fix bug in update script

This commit is contained in:
Arjun31415 2023-12-17 19:25:42 +05:30 committed by Jörg Thalheim
parent b8f1188e2e
commit 27ec5c33b2

View File

@ -25,7 +25,7 @@ updateVersion()
sed -i "s/version = \"[0-9.]*\";/version = \"$1\";/g" "$dirname/default.nix"
}
currentVersion=$(cd $dirname && nix eval --raw -f ../../.. radarr.version)
currentVersion=$(cd $dirname && nix eval --raw -f ../../.. lidarr.version)
latestTag=$(curl https://api.github.com/repos/Lidarr/Lidarr/releases/latest | jq -r ".tag_name")
latestVersion="$(expr $latestTag : 'v\(.*\)')"