summaryrefslogtreecommitdiff
path: root/makerepropkg.in
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2021-07-17 22:45:21 +0200
committerLevente Polyak <anthraxx@archlinux.org>2021-07-17 22:45:21 +0200
commit60e96c9d4bc22062f4633fbc1faa57a2947d0605 (patch)
tree077bbdf5761cff255c727754232d7782f1b035eb /makerepropkg.in
parent30ed6920c7e7962b7161bc2405c63e9a1ab95be2 (diff)
downloaddevtools-60e96c9d4bc22062f4633fbc1faa57a2947d0605.tar.xz
makerepropkg: avoid competing redirects into the same makepkg.conf file
Diffstat (limited to 'makerepropkg.in')
-rwxr-xr-xmakerepropkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makerepropkg.in b/makerepropkg.in
index 7d6ae41..6ce50d4 100755
--- a/makerepropkg.in
+++ b/makerepropkg.in
@@ -206,7 +206,7 @@ makechrootpkg -r "${buildroot}" -l "${chroot}" -- --packagelist || exit 1
done
printf 'OPTIONS=(%s)\n' "${buildopts[*]@Q}"
printf 'BUILDENV=(%s)\n' "${buildenv[*]@Q}"
-} >> "${buildroot}/${chroot}"/etc/makepkg.conf >> "${buildroot}/${chroot}"/etc/makepkg.conf
+} >> "${buildroot}/${chroot}"/etc/makepkg.conf
install -d -o "${SUDO_UID:-$UID}" -g "$(id -g "${SUDO_UID:-$UID}")" "${buildroot}/${chroot}/${BUILDDIR}"
# kick off the build