Make sure $SCRIPTDIR always has a nice looking path to the main scripts path
This commit is contained in:
parent
d9ae709081
commit
a4946979b3
6 changed files with 7 additions and 12 deletions
|
@ -54,8 +54,8 @@ softdep radeon pre: vfio vfio_pci
|
|||
|
||||
|
||||
function main () {
|
||||
SCRIPTDIR=$(dirname `which $0` | perl -pe "s/\/\.\.\/lib//")
|
||||
SCRIPTDIR="$SCRIPTDIR/.."
|
||||
SCRIPTDIR=$(dirname `which $0` | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
|
||||
|
||||
set_MODULES $1
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue