Last active
September 13, 2023 05:04
-
-
Save arnos-stuff/24a7889c436d364e24b775f0e3a7ffc3 to your computer and use it in GitHub Desktop.
bash script to update suri links
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 | |
gh gist edit 7016bacae0337ef54df613cae107fa3f src/links.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment