aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2020-07-03 05:12:35 -0400
committerKylie McClain <kylie@somas.is>2020-07-03 05:12:35 -0400
commit75fa1c755647fd7fea33b60b527290e20c88b49c (patch)
tree911c7d9cc24ec3a4931b0a9e8e3777fccb5737ba
parent5426dcc2e9844922688e6c51e54da7f6834647dc (diff)
downloadpassage-75fa1c755647fd7fea33b60b527290e20c88b49c.tar.gz
passage-75fa1c755647fd7fea33b60b527290e20c88b49c.tar.xz
passage-75fa1c755647fd7fea33b60b527290e20c88b49c.zip
passage: remove leading slashes from lists of files/dirsHEADmain
-rw-r--r--passage.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/passage.in b/passage.in
index 727d853..309fc00 100644
--- a/passage.in
+++ b/passage.in
@@ -86,7 +86,7 @@ pretty_list() {
find ./"${1}" -type d \( -not -name '.*' \) | sed -E 's|$|/|; s|/+$|/|'
find ./"${1}" \( -type f -name '*.age' \)
shift
- done | sed -E 's|\.age$||; s|^(\./)+||g' | sort -d
+ done | sed -E 's|\.age$||; s|^(\./)+||g; s|^/+||' | sort -d
}
## Modes