diff options
author | Erich Eckner <git@eckner.net> | 2018-03-05 11:25:57 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-05 11:25:57 +0100 |
commit | dff5bf22329ba030c70600fb0fa59087990f09a9 (patch) | |
tree | 4c7fb21b61958d73b5833f230438803f3205430f | |
parent | b2406eb70084fe46fcc76e57818b17c5700c9709 (diff) | |
download | builder-dff5bf22329ba030c70600fb0fa59087990f09a9.tar.xz |
bin/build-packages: straw ":with_/dev/fuse:" new to pass "-d /dev/fuse"
-rwxr-xr-x | bin/build-packages | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/bin/build-packages b/bin/build-packages index 70a0c3a..0f0c841 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -345,14 +345,23 @@ while [ "${count}" -ne 0 ]; do if echo "${straw}" | \ grep -qF ':clean_chroot:'; then - parameters='-c' + outerParameters='-c' else - parameters='' + outerParameters='' fi if echo "${straw}" | \ grep -qF ':without_check:'; then - parameters="${parameters} -- -- --nocheck" + innerParameters='--nocheck' + else + innerParameters='' + fi + + if echo "${straw}" | \ + grep -qF ':with_/dev/fuse:'; then + middleParameters='-d /dev/fuse' + else + middleParameters='' fi find . -maxdepth 1 -type f \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -exec \ @@ -368,7 +377,7 @@ while [ "${count}" -ne 0 ]; do # by piping the log, we don't see anything in the terminal, # but all ways to duplicate the logs seem pretty elaborate # shellcheck disable=SC2024,SC2086 - if sudo "${build_command}" ${parameters} > \ + if sudo "${build_command}" ${outerParameters} -- ${middleParameters} -- ${innerParameters} > \ "$( date -u --iso-8601=seconds | \ cut -d+ -f1 |