#!/bin/bash # Gets the directory of where the script is stored # regardless of where it is run from DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo $DIR