You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/04/17 15:52:15 UTC
[camel-k] branch master updated: Fix #602: error in set-version
script
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new bdf5f7e Fix #602: error in set-version script
bdf5f7e is described below
commit bdf5f7e23f0f3243809401f00af06ca1b0af4766
Author: nferraro <ni...@gmail.com>
AuthorDate: Wed Apr 17 12:36:03 2019 +0200
Fix #602: error in set-version script
---
script/set_version.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/script/set_version.sh b/script/set_version.sh
index 33d3aff..f121865 100755
--- a/script/set_version.sh
+++ b/script/set_version.sh
@@ -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");