Skip to content

Commit

Permalink
Arch Linux: don't use -E option for sudo(8)
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Jul 11, 2023
1 parent bcf4fca commit f911de8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions archlinux/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f911de8

Please sign in to comment.