From f911de8abf8a978d03225779d3899772d325dda3 Mon Sep 17 00:00:00 2001 From: TAKANO Mitsuhiro Date: Wed, 12 Jul 2023 00:18:38 +0900 Subject: [PATCH] Arch Linux: don't use `-E` option for `sudo(8)` --- archlinux/entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archlinux/entrypoint.sh b/archlinux/entrypoint.sh index 31b19a5..068298c 100644 --- a/archlinux/entrypoint.sh +++ b/archlinux/entrypoint.sh @@ -2,7 +2,7 @@ set -eux BUILD_DIR=/build-kernel/build -SUDO="sudo -Eu takano32" +SUDO="sudo -u takano32" mkdir -p $BUILD_DIR chown -R takano32:takano32 $BUILD_DIR @@ -20,8 +20,7 @@ while :; do $SUDO makepkg -o --skippgpcheck && break || sleep 5; done JOBS=$(getconf _NPROCESSORS_ONLN) JOBS=$(expr "$JOBS" + "$JOBS") MAKEFLAGS="-j$(JOBS)" -export MAKEFLAGS -$SUDO makepkg --skippgpcheck +$SUDO bash -c "MAKEFLAGS=$MAKEFLAGS makepkg --skippgpcheck" cd $BUILD_DIR mv linux/src/archlinux-linux/Documentation/output ../htmldocs