Add notice about absolute paths
This commit is contained in:
parent
2665af78b6
commit
019d82fee2
3
test.sh
3
test.sh
@ -1,8 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Give in the command to test against as argument(s)
|
# Give in the command to test against as argument(s)
|
||||||
|
# Path needs to be absolute!
|
||||||
# Examples: ./test.sh readlink -f
|
# Examples: ./test.sh readlink -f
|
||||||
# ./test.sh cat
|
# ./test.sh cat
|
||||||
# ./test.sh ./otherscript.sh
|
# ./test.sh $PWD/otherscript.sh
|
||||||
|
|
||||||
bin="$@"
|
bin="$@"
|
||||||
[ -z "$bin" ] && bin=$PWD/realpath.sh
|
[ -z "$bin" ] && bin=$PWD/realpath.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user