Skip to content

Commit

Permalink
Note when failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeguzis committed Mar 7, 2024
1 parent d8d4151 commit f5ddf50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilities/update-emulators/launch-update-emulators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

# Update git source if possible first
mkdir -p "${HOME}/.local/bin"
curl -o "${HOME}/.local/bin/update-emulators.sh.new" "https://raw.githubusercontent.com/mdeguzis/SteamOS-Tools/master/utilities/update-emulators/update-emulators.sh"; sleep 3 | zenity --progress --auto-close --pulsate --text="Fetching the latest update-emulators.sh script" --title="Updater" --width=600 --height=250 2>/dev/null
curl -o "${HOME}/.local/bin/update-emulators.sh.new" "https://raw.githubusercontent.com/mdeguzis/SteamOS-Tools/master/utilities/update-emulators/update-emulators.sh" && sleep 3 | zenity --progress --auto-close --pulsate --text="Fetching the latest update-emulators.sh script" --title="Updater" --width=600 --height=250 2>/dev/null

if [[ $? -eq 0 ]]; then
mv "${HOME}/.local/bin/update-emulators.sh.new" "${HOME}/.local/bin/update-emulators.sh"
else
zenity --info --text="Failed to install new script version, reusing existing script."
rm -f "${HOME}/.local/bin/update-emulators.sh.new"
fi
chmod +x "${HOME}/.local/bin/update-emulators.sh"
Expand Down

0 comments on commit f5ddf50

Please sign in to comment.