diff options
author | Tom Smeding <tom@tomsmeding.com> | 2022-06-14 19:12:53 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2022-06-14 19:12:53 +0200 |
commit | aa6327c3f630c9b7b7ceef8d07f3a57ca03cccf1 (patch) | |
tree | ac54f3f5d17e6c69b3d2ec894547bc767a269a0d /bwrap-files/start.sh | |
parent | 181bdd640a5a605ed43cc14b295a6536541e428e (diff) |
Early-catch large show output with -interactive-print
Diffstat (limited to 'bwrap-files/start.sh')
-rwxr-xr-x | bwrap-files/start.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bwrap-files/start.sh b/bwrap-files/start.sh index 03bf77e..f0d0fa1 100755 --- a/bwrap-files/start.sh +++ b/bwrap-files/start.sh @@ -20,6 +20,7 @@ args=( --ro-bind "${ghcup_base}/bin" "${ghcup_base}/bin" --ro-bind "${ghcup_base}/ghc" "${ghcup_base}/ghc" --ro-bind "${ghcup_base}/cache" "${ghcup_base}/cache" + --ro-bind "${filesdir}/workdir" /workdir --setenv PATH "/bin:/usr/bin:${ghcup_base}/bin" --setenv GHCUP_INSTALL_BASE_PREFIX "$(dirname ${ghcup_base})" --proc /proc @@ -27,8 +28,7 @@ args=( --new-session --unshare-all --die-with-parent - --file 4 "/tmp/entry.sh" - /bin/bash "/tmp/entry.sh" + /bin/bash "/workdir/entry.sh" ) # Turn off core files @@ -40,4 +40,4 @@ ulimit -u 10000 # Limit memory to 500 MiB. ulimit -d $(( 500 * 1024 )) -exec bwrap "${args[@]}" 4<"${filesdir}/entry.sh" +exec bwrap "${args[@]}" |