Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Added cli self-update #369

Merged
merged 2 commits into from Sep 3, 2022
Merged

Added cli self-update #369

merged 2 commits into from Sep 3, 2022

Conversation

Rikysonic
Copy link
Contributor

Now when "./revanced-builder.sh update" is triggered, the script itself is also automatically updated in the home folder.

Now when "./revanced-builder.sh update" is triggered, the script itself is also automatically updated in the home folder.
@reisxd
Copy link
Owner

reisxd commented Sep 3, 2022

Can you use CURL instead of wget?

@Rikysonic
Copy link
Contributor Author

Rikysonic commented Sep 3, 2022

I hope the if case still continues to work, because the example I saw used wget https://stackoverflow.com/questions/8595751/is-this-a-valid-self-update-approach-for-a-bash-script

EDIT: happy path works, dunno when download fails

@Rikysonic
Copy link
Contributor Author

Well, I tried to break the URL and it seems to be working fine!
Screenshot_20220903-100511965

@reisxd reisxd merged commit 393c696 into reisxd:main Sep 3, 2022
@Rikysonic Rikysonic deleted the patch-1 branch September 3, 2022 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants