better detection of where the script actually resides
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd "$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
# Test if config.cfg exists and set needed variables
|
# Test if config.cfg exists and set needed variables
|
||||||
if [ ! -e config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi
|
if [ ! -e config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user