Skip to content

Commit

Permalink
Convert DOSH_DOCKER_XXX_EXTRA_OPTS to array if not arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
gportay committed Jan 30, 2025
1 parent 6502c98 commit c786767
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dosh
Original file line number Diff line number Diff line change
Expand Up @@ -809,13 +809,16 @@ then
fi
set -euo pipefail

# Warn if the DOSH_DOCKER_*_EXTRA_OPTS variables are not arrays.
# Warn if the DOSH_DOCKER_*_EXTRA_OPTS variables are not arrays, and convert
# them if not arrays.
for i in DOSH_DOCKER_RUN_EXTRA_OPTS DOSH_DOCKER_EXEC_EXTRA_OPTS \
DOSH_DOCKER_BUILD_EXTRA_OPTS DOSH_DOCKER_RMI_EXTRA_OPTS
do
if is_set_and_not_array "$i"
then
echo "Warning: $i is an array! Please convert it." >&2
echo "Warning: $i is converted to array." >&2
echo " Please convert it to shutdown that warning." >&2
to_array "$i"
fi
done

Expand Down

0 comments on commit c786767

Please sign in to comment.