We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e40db5 commit 8cc6ee4Copy full SHA for 8cc6ee4
1 file changed
irods/test/scripts/funcs
@@ -1,7 +1,8 @@
1
+SCRIPTDIR=${BASH_SOURCE[0]}
2
up_from_script_dir() {
3
local x incr=""
4
for ((x=0;x<${1:-0};x++)); do incr+="/.."; done
- realpath "$(dirname ${BASH_SOURCE[0]})""$incr"
5
+ realpath "$(dirname "$SCRIPTDIR")""$incr"
6
}
7
8
# Sample usages:
0 commit comments