Add scripts
This commit is contained in:
parent
1600bd6739
commit
be49e3fde1
3 changed files with 18 additions and 0 deletions
8
scripts/common.sh
Normal file
8
scripts/common.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
realpath() {
|
||||
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
||||
}
|
||||
|
||||
SCRIPTPATH=$(realpath "$0")
|
||||
SCRIPTDIR=$(dirname $SCRIPTPATH)
|
Loading…
Add table
Add a link
Reference in a new issue