aboutsummaryrefslogtreecommitdiff
path: root/incoming/post-local/.99-tba-ls
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-04-08 13:29:00 +0100
committerNat Lasseter <user@4574.co.uk>2024-04-08 13:29:00 +0100
commita545c01973f986d97e367f081fafac5aadde2584 (patch)
tree4de509b5200d7996f63cc4fe18c94836e515f931 /incoming/post-local/.99-tba-ls
parent250a1985009ae5034ad23e7b1db171a41fabdb95 (diff)
no .. from / in tba-lsHEADmaster
Diffstat (limited to 'incoming/post-local/.99-tba-ls')
-rwxr-xr-xincoming/post-local/.99-tba-ls4
1 files 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,^./, ,'