Skip to content

Instantly share code, notes, and snippets.

@snown
Created May 2, 2020 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snown/a949c1c5c9e69014d97699aca525177a to your computer and use it in GitHub Desktop.
Save snown/a949c1c5c9e69014d97699aca525177a to your computer and use it in GitHub Desktop.
Find the path to the bash script file currently being executed
get_script_path () {
printf '%s' "$(realpath "${BASH_SOURCE[0]}")"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment