diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 5cbc8b6..177d458 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -68,8 +68,10 @@ update() { if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then if [[ -w "$0" ]]; then wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" + chmod +x "$0" else sudo wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" + sudo chmod +x "$0" fi echo "${0##*/} has been updated. Please launch the program again to use the latest version." exit 0