mirror of
https://github.com/HikariKnight/quickpassthrough.git
synced 2025-05-16 16:14:46 -04:00
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
|
@ -61,7 +61,7 @@ echo 0 | sudo tee $VBIOS_PATH
|
|||
|
||||
|
||||
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_ROM "$1"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue