diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-08 19:18:47 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-05-08 19:18:47 +0000 |
commit | 0af45db40a809524fe0b3f7f38d5185717ff8758 (patch) | |
tree | 3cc9372cf7611cb79f08d075d30a645174c04c4b /zshfunc/upgrade-systems | |
parent | 8ab42a34318201ecb67d96dac5e688ccf4cc7f34 (diff) |
remove function headers
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@392 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
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 |