Skip to content

Instantly share code, notes, and snippets.

@andreyev
Last active June 5, 2025 14:58
Show Gist options
  • Save andreyev/c34884942cca077b8c4cf8bf7cc3b127 to your computer and use it in GitHub Desktop.
Save andreyev/c34884942cca077b8c4cf8bf7cc3b127 to your computer and use it in GitHub Desktop.
gist-update.sh
#!/bin/bash
set -e
[[ -s .gist_id ]] || ( echo "No gist id found"; exit 1)
export GIST_ID=$(cat .gist_id)
curl -s https://gist.githubusercontent.com/andreyev/${GIST_ID%%:*}/raw/${GIST_ID##*:} -o run.sh && bash -$- run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment