Skip to content

Instantly share code, notes, and snippets.

@cverbiest
Last active September 7, 2017 08:11
Show Gist options
  • Save cverbiest/a7e39a64c1fede15e1c7 to your computer and use it in GitHub Desktop.
Save cverbiest/a7e39a64c1fede15e1c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Purpose :
# Author : Carl Verbiest
# vim: se ts=4 sw=4 ai:
script=$0
script_dir=${script%/*}
script=${script##*/}
suffix=$(date +%y%m%d.%H%M%S)
logfile=/tmp/$script.$suffix
# Let unset variables cause an error
set -u
# Make errors stop execution
set -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment