summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-01-22 17:08:00 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-01-22 17:08:00 +0100
commit58bed8a88d4a6cd934f6c5579d0895150d725b41 (patch)
treec077f7576d898ba37e80b1b2aeceda25064924b9
parentdc8f4526a6d85e4018f4bd4af61aac08fd4e88e7 (diff)
downloadbin-58bed8a88d4a6cd934f6c5579d0895150d725b41.tar.gz
bin-58bed8a88d4a6cd934f6c5579d0895150d725b41.tar.xz
ch: Improve list output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xch6
1 files changed, 6 insertions, 0 deletions
diff --git a/ch b/ch
index 4baa097..2715d8f 100755
--- a/ch
+++ b/ch
@@ -253,6 +253,12 @@ case $command in
list)
for chrootdir in "$CHROOTS/"*/; do
basename "$chrootdir"
+ for copydir in "$chrootdir/"*/; do
+ dirname=$(basename "$copydir")
+ if [[ $dirname != "root" ]]; then
+ printf " %s\n" "$dirname"
+ fi
+ done
done
;;
*) printf "Unknown command %s\n" "$command";;