Fix for relative path arguments

This commit is contained in:
Nero 2018-03-16 04:07:09 +00:00
parent 60c02a37fd
commit 6530695869
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh
p="${1%/}"
p="${p#/}"
case "$1" in
/*) p="${1#/}"
r="";;
*) p="${PWD#/}/$1";;
esac
r=""