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
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get the scripts directory
|
||||
SCRIPTDIR=$(dirname "$(which $0)")
|
||||
SCRIPTDIR=$(dirname "$(realpath "$0")")
|
||||
cd "$SCRIPTDIR"
|
||||
|
||||
# Get the config paths
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue