1 2 3 4
#!/bin/bash set -e pushd "$(dirname ${BASH_SOURCE:0})" &>/dev/null trap 'popd &>/dev/null' EXIT