Skip to content

Instantly share code, notes, and snippets.

@arturoherrero
Last active August 29, 2015 13:57
Show Gist options
  • Save arturoherrero/9645345 to your computer and use it in GitHub Desktop.
Save arturoherrero/9645345 to your computer and use it in GitHub Desktop.
Bash script to get the full path to itself
#!/usr/bin/env bash -e
script_path=$( cd $(dirname $0) ; pwd -P )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment