diff options
author | Erich Eckner <git@eckner.net> | 2024-10-12 12:53:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-10-12 12:54:09 +0200 |
commit | db90f422690f6d33c53f43ad177c24ba96df9b4d (patch) | |
tree | 0087d983550c9969dd82ce4cb0c45fdbea1ac7cd /update-me.in | |
parent | cbff75b9cb0d34cbd6c87f8b7c96b35f36b5add1 (diff) | |
download | update-all-db90f422690f6d33c53f43ad177c24ba96df9b4d.tar.xz |
makekernel should not run as root
Diffstat (limited to 'update-me.in')
-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} |