Gsd/Phase 04 Auth Passthrough #1
1 changed files with 6 additions and 1 deletions
|
|
@ -307,10 +307,15 @@ if [[ "$DRY_RUN" == true ]]; then
|
|||
{
|
||||
echo "bwrap \\"
|
||||
echo " --clearenv \\"
|
||||
# Guard: ENV_ARGS must be a multiple of 3 (--setenv NAME VALUE triplets)
|
||||
if (( ${#ENV_ARGS[@]} % 3 != 0 )); then
|
||||
echo "BUG: ENV_ARGS length ${#ENV_ARGS[@]} is not a multiple of 3" >&2
|
||||
exit 1
|
||||
fi
|
||||
dry_run_i=0
|
||||
while (( dry_run_i < ${#ENV_ARGS[@]} )); do
|
||||
printf ' %s %s %q \\\n' "${ENV_ARGS[$dry_run_i]}" "${ENV_ARGS[$((dry_run_i+1))]}" "${ENV_ARGS[$((dry_run_i+2))]}"
|
||||
(( dry_run_i += 3 ))
|
||||
dry_run_i=$(( dry_run_i + 3 ))
|
||||
done
|
||||
echo " --tmpfs / \\"
|
||||
echo " --proc /proc \\"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue