From a545c01973f986d97e367f081fafac5aadde2584 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 8 Apr 2024 13:29:00 +0100 Subject: no .. from / in tba-ls --- incoming/post-local/.99-tba-ls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incoming/post-local/.99-tba-ls b/incoming/post-local/.99-tba-ls index bd181f8..d76bafb 100755 --- a/incoming/post-local/.99-tba-ls +++ b/incoming/post-local/.99-tba-ls @@ -1,10 +1,10 @@ #!/bin/bash -echo "Ye find yeself in yon $(pwd)." +echo "Ye find yeself in yon $(pwd)" echo echo "Ye see:" find -L . -maxdepth 1 \! -iname '.*' -type f | sed 's,^./, ,' echo echo "Obvious exits are:" -echo " .." +[ "$(pwd)" = '/' ] || echo " .." find -L . -maxdepth 1 \! -iname '.*' -type d | sed 's,^./, ,' -- cgit v1.2.1