We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f74eff commit af8046dCopy full SHA for af8046d
sandbox-run
@@ -16,7 +16,7 @@ if [ "${bin##*/}" != 'sandbox-run' ]; then
16
else
17
if [ "$#" -eq 0 ]
18
then echo "Usage: ${0##*/} ARG..."; exit 1
19
- else bin="$1"; shift
+ else bin="$(command -v "$1")"; shift
20
fi
21
22
@@ -104,6 +104,7 @@ bwrap \
104
--symlink /usr/bin /bin \
105
--symlink /usr/bin /sbin \
106
--dev-bind-try /dev/fuse /dev/fuse \
107
+ --ro-bind "$bin" "$bin" \
108
$(set +x; for path in $paths; do [ ! -e "$path" ] || printf -- '--ro-bind-try %s %s ' "$path" "$path"; done) \
109
--bind "$cwd" "$cwd" \
110
--chdir "$cwd" \
0 commit comments