summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-03-28 10:51:37 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-03-28 10:51:37 +0100
commit023216ec92d254697059c24855b56adeafdef9c5 (patch)
tree58de8fe16390fbc4b872dd320496e084ccf350c3
parent4f2a1e5848cf3250da1f489d09a29e3969ca1065 (diff)
downloadbin-023216ec92d254697059c24855b56adeafdef9c5.tar.gz
bin-023216ec92d254697059c24855b56adeafdef9c5.tar.xz
ch: add list command
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 506f38c..a0b0c77 100755
--- a/ch
+++ b/ch
@@ -5,6 +5,7 @@
# ch install <id> <package files>... install the package files in the chroot
# ch kill all remove all chroots (including master chroot)
# ch update update all chroots
+# ch list lists all existing master chroots
# IDs work like this:
# 64 = 64bit extra
@@ -180,5 +181,10 @@ case $command in
shell) chshell "$1";;
rshell) chrshell "$1";;
install) chinstall "$@";;
+ list)
+ for chrootdir in "$CHROOTS/"*/; do
+ echo "$(basename "$chrootdir")"
+ done
+ ;;
*) printf "Unknown command %s\n" "$command";;
esac