hopefully update permissions on updated binaries.
This commit is contained in:
parent
557c95c605
commit
f5851a8b43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user