summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-25 18:10:24 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-25 18:10:24 (EST)
commitab654dadd640164b7ddf01a3599c2a8beb6d6302 (patch)
treedbc13ddc9d379bf74e870ab1e212e989b4c98ac0 /src
parent41348f1255cf5941222442accec97fd00c6c2226 (diff)
opkbuild: Don't run ob-* commands from a child shell
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 6c19b89..fbd0d7d 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -312,13 +312,11 @@ build()
case "${opt_target}" in
'')
../build build
- ${opt_uid0_cmd} -- sh -s <<-EOF
- ../build install && \
- '${BINDIR}/ob-installdocs' && \
- '${BINDIR}/ob-gencontrol' && \
- '${BINDIR}/ob-buildopk' && \
- '${BINDIR}/ob-genchanges'
- EOF
+ ${opt_uid0_cmd} -- ../build install && \
+ ${opt_uid0_cmd} -- '${BINDIR}/ob-installdocs' && \
+ ${opt_uid0_cmd} -- '${BINDIR}/ob-gencontrol' && \
+ ${opt_uid0_cmd} -- '${BINDIR}/ob-buildopk' && \
+ ${opt_uid0_cmd} -- '${BINDIR}/ob-genchanges'
if [ ${?} -ne 0 ]; then
exit 1
fi