Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-10 19:50:59 +0100
committerErich Eckner <git@eckner.net>2017-11-10 19:50:59 +0100
commit38d374cd77621a1bb5bb510fb1752ebfbe92341b (patch)
treeda453eb049711d50779e643378208216dad411b9 /bin
parent9ea39b4b17242641583811b9f8b002837851f224 (diff)
bin/build-packages: use sudo for calling build command
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 2c326fa..6c9478d 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -306,7 +306,8 @@ while [ "${count}" -ne 0 ]; do
"${straw}"
# by piping the log, we don't see anything in the terminal,
# but all ways to duplicate the logs seem pretty elaborate
- if "${build_command}" ${parameters} > \
+ # shellcheck disable=SC2024
+ if sudo "${build_command}" ${parameters} > \
"$(
date -u --iso-8601=seconds | \
cut -d+ -f1
@@ -353,8 +354,8 @@ while [ "${count}" -ne 0 ]; do
fi
# this is a little hack: makepkg receives '--version', but namcap is run nevertheless
# (and it only works with devtools32, because they are running namcap on *.pkg.tar.xz in the base directory, too)
- "${x86_64_build_command}" -- -- --version > /dev/null 2>&1 || \
- "${x86_64_build_command}" -c -- -- --version > /dev/null 2>&1 || \
+ sudo "${x86_64_build_command}" -- -- --version > /dev/null 2>&1 || \
+ sudo "${x86_64_build_command}" -c -- -- --version > /dev/null 2>&1 || \
true
# now we generate diffs from the namcap.logs
find . "${tar_content_dir}/" -maxdepth 1 -type f -name '*.pkg.tar.xz-namcap.log' -printf '%p\n' | \