summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-02-16 21:27:42 +0100
committerFlorian Pritz <bluewind@server-speed.net>2011-02-16 21:27:42 +0100
commitde4f957f3396eb19e038e24a4cbdb7a3bd6ec938 (patch)
tree42c6e9638eb26816558b607738676b4086e1c7ce
parentd16669342859464f34d5d42a9cacc846d1439cc8 (diff)
downloaddotfiles-de4f957f3396eb19e038e24a4cbdb7a3bd6ec938.tar.gz
dotfiles-de4f957f3396eb19e038e24a4cbdb7a3bd6ec938.tar.xz
fix placement of chclean in chupdate
Run cleanup even if we only update a single chroot Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r--.zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index e165dea..76f142e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -453,13 +453,13 @@ chupdate() {
for chrootdir in "$__CHROOTS/"*(/); do
chupdate "$(basename "$chrootdir")"
done
- echo ":: Cleaning up ..."
- chclean
else
for id in "$@"; do
chrootdir="$__CHROOTS/$id"
echo ":: Updating $id"
linux${id[1,2]} sudo mkarchroot -u "$chrootdir/root" -- --noconfirm
+ echo ":: Cleaning up ..."
+ chclean $id
done
fi
}