get-script-directory.bash 134 B

12345678
  1. #!/usr/bin/env bash
  2. set -Eeuxo pipefail
  3. DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
  4. printf "%s\n" "${DIR}"