Skip to content

Instantly share code, notes, and snippets.

@Ham5ter
Created June 29, 2016 11:24
Show Gist options
  • Save Ham5ter/a852be69aa66a32a4d2e919f4b22858a to your computer and use it in GitHub Desktop.
Save Ham5ter/a852be69aa66a32a4d2e919f4b22858a to your computer and use it in GitHub Desktop.
This sets the variable "SCRIPT_DIRECTORY" to the Path, the Script is in.
#!/bin/bash
# This sets the variable "SCRIPT_DIRECTORY" to the Path, the Script is in.
SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment