Created
September 13, 2023 05:19
-
-
Save arnos-stuff/fb37e2bf408a9b0fc5709cc42ea60622 to your computer and use it in GitHub Desktop.
Link updater bash script
This file contains 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 | |
# assumes you have done curl https://url.shae.run/links.json > links.json | |
# and then edited the file to your liking | |
# this script just clones the repo and reuploads + edits the gist with the links.json | |
git clone https://github.com/arnos-stuff/suri-redirect /tmp/suri | |
cp links.json /tmp/suri/src/links.json | |
cd /tmp/suri | |
git add . && git commit -m "Committing update to links.json" && git push origin master | |
## last step must happen manually for now .. | |
# gh gist create update-links.sh --public -d "Link updater bash script" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment