Skip to content

Commit 8cc6ee4

Browse files
committed
[__502] scriptdir
1 parent 3e40db5 commit 8cc6ee4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

irods/test/scripts/funcs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
SCRIPTDIR=${BASH_SOURCE[0]}
12
up_from_script_dir() {
23
local x incr=""
34
for ((x=0;x<${1:-0};x++)); do incr+="/.."; done
4-
realpath "$(dirname ${BASH_SOURCE[0]})""$incr"
5+
realpath "$(dirname "$SCRIPTDIR")""$incr"
56
}
67

78
# Sample usages:

0 commit comments

Comments
 (0)