use realpath with dirname to get the scriptdir
This commit is contained in:
parent
cd7b7a989a
commit
4fc07b97f2
11 changed files with 12 additions and 11 deletions
|
@ -33,7 +33,7 @@ DO NOT use any of the files from $SCRIPTDIR/config !
|
|||
}
|
||||
|
||||
function main () {
|
||||
SCRIPTDIR=$(dirname "$(which $0)" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
|
||||
SCRIPTDIR=$(dirname "$(realpath $0)" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
|
||||
|
||||
get_GPU
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue