diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-17 23:47:21 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-17 14:46:10 -0400 |
commit | e4e5a028843316edf73cae4ac70d9df3cf8e1565 (patch) | |
tree | b51b782a9ecc247fb00c4164a43dd1b5019918ae /test/test.d/ftpdir-cleanup.sh | |
parent | a2891a08c0cde48d966b037503c24b0d8f5b5f6d (diff) |
Consistently use "$(dirname "$(readlink -e "$0")")"
This does correct handling of
- executing a program by symlink
- any weird characters in the full path
- I'm sure there's another case I thought about when I originally did
this.
Diffstat (limited to 'test/test.d/ftpdir-cleanup.sh')
-rwxr-xr-x | test/test.d/ftpdir-cleanup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.d/ftpdir-cleanup.sh b/test/test.d/ftpdir-cleanup.sh index 6902b9b..5a7afea 100755 --- a/test/test.d/ftpdir-cleanup.sh +++ b/test/test.d/ftpdir-cleanup.sh @@ -1,6 +1,6 @@ #!/bin/bash -curdir=$(readlink -e "$(dirname "$0")") +curdir="$(dirname "$(readlink -e "$0")")" . "${curdir}/../lib/common.inc" testCleanupSimplePackages() { |