hopefully update permissions on updated binaries.

This commit is contained in:
Storm Dragon 2021-03-01 19:12:35 -05:00
parent 557c95c605
commit f5851a8b43

View File

@ -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