From 023216ec92d254697059c24855b56adeafdef9c5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 28 Mar 2013 10:51:37 +0100 Subject: ch: add list command Signed-off-by: Florian Pritz --- ch | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ch') diff --git a/ch b/ch index 506f38c..a0b0c77 100755 --- a/ch +++ b/ch @@ -5,6 +5,7 @@ # ch install ... 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 -- cgit v1.2.3-24-g4f1b