Dont output empty line

This commit is contained in:
Nero 2018-03-13 23:52:18 +00:00
parent 14eb56e8e1
commit e29ff72436
1 changed files with 1 additions and 1 deletions

View File

@ -8,4 +8,4 @@ case "$target" in
*) p="${p%/*}/$target";;
esac
printf "%s\n" "$p"|sed -e 's@/[^/]*/\.\.\(/\|$\)@/@g' -e 's|/\.\(/\|$\)|/|g' -e 's|/$||g'
printf "%s\n" "$p"|sed -e 's@/[^/]*/\.\.\(/\|$\)@/@g' -e 's|/\.\(/\|$\)|/|g' -e 's|/$||g' -e '/^$/d'