diff options
-rw-r--r-- | update-me.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/update-me.in b/update-me.in index 77bf0fc..e8e50d3 100644 --- a/update-me.in +++ b/update-me.in @@ -178,7 +178,7 @@ then cmds=('pacman -Syu' 'pacdiff') elif [ -d '#ETCDIR#/ports' ] then - cmds=('ports -u' 'prt-get --install-scripts sysup' 'rejmerge' 'revdep' 'makekernel') + cmds=('ports -u' 'prt-get --install-scripts sysup' 'rejmerge' 'revdep' '!makekernel') elif [ -d '#ETCDIR#/apt' ] then cmds=('apt-get update' 'apt-get upgrade' 'apt-get dist-upgrade' 'apt-get autoremove') @@ -212,7 +212,11 @@ done for cmd in "${cmds[@]}" do - eval ${pre} ${cmd} + if [ -z "${cmd##!*}" ]; then + eval ${cmd} + else + eval ${pre} ${cmd} + fi err=$? while [ ${err} -ne 0 ] && nochmal_versuchen; do eval ${pre} ${cmd} |