Fix for relative path arguments
This commit is contained in:
parent
60c02a37fd
commit
6530695869
@ -1,6 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
p="${1%/}"
|
p="${1%/}"
|
||||||
p="${p#/}"
|
|
||||||
|
case "$1" in
|
||||||
|
/*) p="${1#/}"
|
||||||
|
r="";;
|
||||||
|
*) p="${PWD#/}/$1";;
|
||||||
|
esac
|
||||||
|
|
||||||
r=""
|
r=""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user