diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-18 15:16:00 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-22 12:31:57 (EDT) |
commit | 942a425651a5aaef73f422e2fb31ce4e114d551e (patch) | |
tree | 4b61bc006e2997b851db96e3974592b6f6e544f8 | |
parent | 761f60568620251ce8280d8b15d57438a5c36e20 (diff) |
opkbuild: Unquote UID 0 command
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/opkbuild.sh | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -7,6 +7,8 @@ Utilities: * ob-gencontrol now actually populates the source package field "Binary" added in version 4.1.0. + * opkbuild now supports commands with arguments as arguments to the + "-r" option, for example "-r 'env -i fakeroot'". opkbuild version 4.1.1 ---------------------- diff --git a/src/opkbuild.sh b/src/opkbuild.sh index aa942c4..e6dc730 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -171,7 +171,7 @@ test_uid0_cmd() local test_uid= # Verify that the UID 0 command works. - if ! test_uid=$("${opt_uid0_cmd}" -- id -u); then + if ! test_uid=$(${opt_uid0_cmd} -- id -u); then ob_error "$(ob_get_msg 'uid0_cmd_not_found')" "${opt_uid0_cmd}" return 1 fi @@ -279,7 +279,7 @@ build_source() if ! OB_DO_SOURCE='true' "${bindir}/ob-gencontrol"; then return 1 fi - if ! OB_DO_SOURCE='true' "${opt_uid0_cmd}" -- "${bindir}/ob-buildopk" + if ! OB_DO_SOURCE='true' ${opt_uid0_cmd} -- "${bindir}/ob-buildopk" then return 1 fi |