Created
July 14, 2023 14:11
-
-
Save gbrls/da3547490039bcd65413799f1b9a6012 to your computer and use it in GitHub Desktop.
scaffold for bash scripts
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
#!/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