Skip to content

Instantly share code, notes, and snippets.

@escherlies
Created February 23, 2023 18:43
Show Gist options
  • Save escherlies/b428293e249a5c224e5f351af21d8ea2 to your computer and use it in GitHub Desktop.
Save escherlies/b428293e249a5c224e5f351af21d8ea2 to your computer and use it in GitHub Desktop.
Bash template script
#!/bin/bash
# If anything goes south anywhere, exit with error code 1
set -euo pipefail
# The directory of the file
BASEDIR=$(realpath $(dirname "$0"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment