diff options
Diffstat (limited to 'zshfunc/upgrade-systems')
-rw-r--r-- | zshfunc/upgrade-systems | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/zshfunc/upgrade-systems b/zshfunc/upgrade-systems index 071c8dc..a88a356 100644 --- a/zshfunc/upgrade-systems +++ b/zshfunc/upgrade-systems @@ -1,17 +1,15 @@ ## vim:ft=zsh:foldmethod=marker -upgrade-systems() { - cd - for i in $HOSTS; do - mkdir hosts/$i 2>/dev/null || continue; - echo $i; - preexec $i; - ssh $i -t 'apt-get update && - if [ -e /usr/bin/apt-get.distrib ]; then - aptitude dist-upgrade; - else - apt-get dist-upgrade; - fi && - apt-get clean'; - done -} +cd +for i in $HOSTS; do + mkdir hosts/$i 2>/dev/null || continue; + echo $i; + preexec $i; + ssh $i -t 'apt-get update && + if [ -e /usr/bin/apt-get.distrib ]; then + aptitude dist-upgrade; + else + apt-get dist-upgrade; + fi && + apt-get clean'; +done |