Dont output empty line
This commit is contained in:
parent
14eb56e8e1
commit
e29ff72436
@ -8,4 +8,4 @@ case "$target" in
|
|||||||
*) p="${p%/*}/$target";;
|
*) p="${p%/*}/$target";;
|
||||||
esac
|
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'
|
||||||
|
Loading…
Reference in New Issue
Block a user