Skip to content

Instantly share code, notes, and snippets.

@gbrls
Created July 14, 2023 14:11
Show Gist options
  • Save gbrls/da3547490039bcd65413799f1b9a6012 to your computer and use it in GitHub Desktop.
Save gbrls/da3547490039bcd65413799f1b9a6012 to your computer and use it in GitHub Desktop.
scaffold for bash scripts
#!/usr/bin/env bash
log() {
printf "(~) $1\n" 1>&2
}
if [[ -z "$1" ]]; then
log "Usage $0 ..."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment