oliverdavies.uk/scripts/common.sh

11 lines
196 B
Bash
Raw Normal View History

2019-03-01 10:14:57 +00:00
#!/usr/bin/env bash
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
SCRIPTPATH=$(realpath "$0")
SCRIPTDIR=$(dirname $SCRIPTPATH)
2019-03-01 11:28:46 +00:00
SCULPIN="$SCRIPTDIR/../vendor/bin/sculpin"