File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# sandbox-venv: Secure container sandbox venv wrapper (GENERATED CODE)
3
3
set -eu
4
-
4
+ # shellcheck disable=SC3040
5
+ case " $( set -o) " in * pipefail* ) set -o pipefail ;; esac
5
6
alias realpath=' realpath --no-symlinks'
6
7
warn () { echo " sandbox-venv/wrapper: $* " >&2 ; }
7
8
Original file line number Diff line number Diff line change 2
2
# sandbox-venv: Secure container sandbox venv wrapper (GENERATED CODE)
3
3
# pip wrapper: Re-run sandbox-venv after every pip installation
4
4
set -u
5
+ # shellcheck disable=SC3040
6
+ case " $( set -o) " in * pipefail* ) set -o pipefail ;; esac
5
7
alias realpath=' realpath --no-symlinks'
6
8
7
9
venv=" $( realpath " ${0%/* } /.." ) "
Original file line number Diff line number Diff line change 4
4
# Also re‑wrap any new scripts post installation by pip etc.
5
5
# shellcheck disable=SC2317
6
6
set -eu
7
+ # shellcheck disable=SC3040
8
+ case " $( set -o) " in * pipefail* ) set -o pipefail ;; esac
7
9
8
10
for arg; do case " $arg " in -h| -\? | --help) echo " Usage: ${0##*/ } [VENV_DIR] [BWRAP_OPTS] # Dir defaults to .venv" ; exit ;; esac ; done
9
11
You can’t perform that action at this time.
0 commit comments