Skip to content

Instantly share code, notes, and snippets.

@afknapping
Last active February 23, 2021 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afknapping/c0a5f5acf591cd9829e70fafb62c2e9f to your computer and use it in GitHub Desktop.
Save afknapping/c0a5f5acf591cd9829e70fafb62c2e9f to your computer and use it in GitHub Desktop.
update urbit binary
#! /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