Just wanted to point out that jq is not a standard install for Bullseye, so the user needs to install jq, so might want to edit upgrade.sh to:
which js
if [ $? -eq 1 ]; then
echo -e "upgrade.sh needs jq to run\ninstall jq with sudo apt install jq"
exit
fi
Also, might want to test is the latest version is already installed.