Fix bug with trailing slash

This commit is contained in:
Nero 2018-03-13 23:53:30 +00:00
parent e29ff72436
commit a375428d5d

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
p="$1" p="${1%/}"
target=$(readlink "$p") target=$(readlink "$p")
case "$target" in case "$target" in