Fix for relative path arguments

This commit is contained in:
Nero 2018-03-16 04:07:09 +00:00
parent 60c02a37fd
commit 6530695869

View File

@ -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=""