#!/usr/bin/env bash # Make sure script is NOT sourced. if [[ "${BASH_SOURCE[0]}" != $0 ]]; then echo "It appears that you sourced this script instead of executing it." >&2 echo "Please set the executable bit 'chmod ugo+x