summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-10-12 12:53:58 +0200
committerErich Eckner <git@eckner.net>2024-10-12 12:54:09 +0200
commitdb90f422690f6d33c53f43ad177c24ba96df9b4d (patch)
tree0087d983550c9969dd82ce4cb0c45fdbea1ac7cd
parentcbff75b9cb0d34cbd6c87f8b7c96b35f36b5add1 (diff)
downloadupdate-all-db90f422690f6d33c53f43ad177c24ba96df9b4d.tar.xz
makekernel should not run as root
-rw-r--r--update-me.in8
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}