#!/bin/bash SCRIPT_PATH="$( cd "$( dirname "$0" )" >/dev/null 2>&1 && pwd )" echo "$SCRIPT_PATH"
#!/bin/bash DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd); echo $DIR