summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";;