Skip to content

Commit

Permalink
fix: ♻️ use safer update code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherStranger committed Oct 6, 2023
1 parent b909182 commit b66cfdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ if [[ "$latest_release" != "v$CURRENT_VERSION" ]]; then
echo "Result: $ask_question_result"

if [ $ask_question_result -eq 0 ]; then
wget "https://github.com/$GITHUB_REPO/releases/download/$latest_release/dev-setup.sh" -O "dev-setup.sh"
chmod +x "dev-setup.sh"
wget "https://github.com/$GITHUB_REPO/releases/download/$latest_release/dev-setup.sh" -O "dev-setup-next.sh"
chmod +x "dev-setup-next.sh"
mv "dev-setup-next.sh" "dev-setup.sh"
echo "Update successfully. Please re-run the script."
exit 0
else
Expand Down

0 comments on commit b66cfdb

Please sign in to comment.