Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ while getopts "r:w:e:abcdfhmnpuv" opt; do
# bind / mount a path readonly in sandbox to the same path as host
r)
# Create a directory if the path does not exist
mkdir -p "$OPTARG" || true
[[ -e "$OPTARG" ]] || mkdir -p "$OPTARG"

bwrap_opts+=(--ro-bind "$OPTARG" "$OPTARG")
;;

# bind / mount a path read/write in sandbox to the same path as host
w)
# Create a directory if the path does not exist
mkdir -p "$OPTARG" || true
[[ -e "$OPTARG" ]] || mkdir -p "$OPTARG"

bwrap_opts+=(--bind "$OPTARG" "$OPTARG")
;;
Expand Down