~ salmonella-environment-setup (master) 32fcca482fc98eafdba32ff8613eab759d2f8deb
commit 32fcca482fc98eafdba32ff8613eab759d2f8deb Author: Mario Domenech Goulart <mario@parenteses.org> AuthorDate: Sat Dec 1 18:37:28 2018 +0100 Commit: Mario Domenech Goulart <mario@parenteses.org> CommitDate: Sat Dec 1 18:37:28 2018 +0100 run-salmonella.sh: handle relative pathnames Use `readlink -f` to the the absolute path to SRC_DIR, so that we can call run-salmonella.sh using relative paths. diff --git a/run-salmonella.sh b/run-salmonella.sh index ff24af9..4b37a6d 100755 --- a/run-salmonella.sh +++ b/run-salmonella.sh @@ -9,7 +9,7 @@ Usage: $(basename "$0") <confs> EOF } -SRC_DIR=$(dirname "$0") +SRC_DIR=$(readlink -f "$(dirname "$0")") WORK_DIR=$HOME/salmonella/build LOG_DIR=$HOME/salmonellaTrap