File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ if [ -z " $1 " ]; then
6+ echo " New version not specified. Usage: bump-version.sh NEW_VERSION"
7+ exit 1
8+ fi
9+
10+ NEW_VERSION=$1
11+ CURRENT_VERSION=$( sed -ne " s/^version '\(.*\)'/\1/p" metadata.rb)
12+
13+ sed -i -e " s/\(.*parallelcluster.*version.*\)$CURRENT_VERSION \(.*\)/\1$NEW_VERSION \2/g" amis/packer_variables.json
14+ sed -i " s/default\['cfncluster'\]\['cfncluster-version'\] = '$CURRENT_VERSION '/default['cfncluster']['cfncluster-version'] = '$NEW_VERSION '/g" attributes/default.rb
15+ sed -i " s/default\['cfncluster'\]\['cfncluster-node-version'\] = '$CURRENT_VERSION '/default['cfncluster']['cfncluster-node-version'] = '$NEW_VERSION '/g" attributes/default.rb
16+ sed -i " s/version '$CURRENT_VERSION '/version '$NEW_VERSION '/g" metadata.rb
You can’t perform that action at this time.
0 commit comments