diff options
Diffstat (limited to 'zshfunc/upgrade-debian-hosts')
-rw-r--r-- | zshfunc/upgrade-debian-hosts | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/zshfunc/upgrade-debian-hosts b/zshfunc/upgrade-debian-hosts index b288b53..5e44588 100644 --- a/zshfunc/upgrade-debian-hosts +++ b/zshfunc/upgrade-debian-hosts @@ -1,15 +1,13 @@ ## vim:ft=zsh:foldmethod=marker -upgrade-debian-hosts() { - cd - for i in $DEBHOSTS; do - mkdir hosts/$i 2>/dev/null || continue; - echo $i; - preexec $i; - ssh $i -t ' - sudo apt-get update && - sudo apt-get dist-upgrade && - sudo apt-get clean - '; - done -} +cd +for i in $DEBHOSTS; do + mkdir hosts/$i 2>/dev/null || continue; + echo $i; + preexec $i; + ssh $i -t ' + sudo apt-get update && + sudo apt-get dist-upgrade && + sudo apt-get clean + '; +done |