9 lines
152 B
Bash
9 lines
152 B
Bash
#!/usr/bin/env bash
|
|
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
SCRIPTPATH=$(realpath "$0")
|
|
SCRIPTDIR=$(dirname $SCRIPTPATH)
|