SCRIPT=$(readlink -f “$0”)

echo $SCRIPT‘ is the script path.’
SCRIPTPATH=$(dirname “$SCRIPT”)

echo $SCRIPTPATH‘ is the script directory path.’

Advertisements