Last active
February 23, 2021 07:13
-
-
Save afknapping/c0a5f5acf591cd9829e70fafb62c2e9f to your computer and use it in GitHub Desktop.
update urbit binary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# this depends on the trash command, see how-not-to-rm-yourself by sindresorhus at https://github.com/sindresorhus/guides/blob/main/how-not-to-rm-yourself.md | |
# tl;dr on mac: brew install trash | |
# why not just use rm? because trash can be undone | |
trash urbit | |
trash urbit-worker | |
trash urbit-king | |
trash darwin.tgz | |
curl -JLO https://urbit.org/install/mac/latest # see https://urbit.org/using/install/ | |
tar zxvf ./darwin.tgz --strip=1 | |
# to create the file: touch pull-update.sh | |
# paste all of this into the file | |
# to make executable: chmod +x | |
# to execute: ./pull-update.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment