From db90f422690f6d33c53f43ad177c24ba96df9b4d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 12 Oct 2024 12:53:58 +0200 Subject: makekernel should not run as root --- update-me.in | 8 ++++++-- 1 file 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} -- cgit v1.2.3-70-g09d2