Skip to content

Commit

Permalink
Fix apache#602: error in set-version script
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro authored and ipolyzos committed Jul 31, 2019
1 parent f221a8e commit 524198e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

set -e

if [ "$#" -ne 1 ]; then
echo "usage: $0 version"
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then
echo "usage: $0 version [image_name]"
exit 1
fi

location=$(dirname $0)
version=$1
image_name=${2:-docker.io\/apache\/camel-k}
sanitized_image_name=${image_name/\//\\\/}
sanitized_image_name=${image_name//\//\\\/}


for f in $(find $location/../deploy -type f -name "*.yaml");
Expand Down

0 comments on commit 524198e

Please sign in to comment.