Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
fix parentheses when parsing multiple arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
David Burilovic authored and bonifaido committed May 21, 2019
1 parent ad1fd17 commit d652653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ if [[ "${PLUGIN_CACHE:-}" == "true" ]]; then
CACHE="--cache=true"
fi

if [[ -n "${PLUGIN_BUILD_ARGS:-}" ]]; then
if [ -n "${PLUGIN_BUILD_ARGS:-}" ]; then
BUILD_ARGS=$(echo "${PLUGIN_BUILD_ARGS}" | tr ',' '\n' | while read build_arg; do echo "--build-arg=${build_arg}"; done)
fi
if [[ -n "${PLUGIN_TAGS:-}" ]]; then
if [ -n "${PLUGIN_TAGS:-}" ]; then
DESTINATIONS=$(echo "${PLUGIN_TAGS}" | tr ',' '\n' | while read tag; do echo "--destination=${PLUGIN_REPO}:${tag} "; done)
else
DESTINATIONS="--destination=${PLUGIN_REPO}:latest"
Expand Down

0 comments on commit d652653

Please sign in to comment.