openreplay/scripts/helmcharts/versionUpdater.sh
rjshrjndrn 044cd1ae1a fix(script): variable update
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2022-11-04 14:41:14 +01:00

10 lines
429 B
Bash

#!/bin/bash
# This script will update the version of openreplay components.
currentVersion=$1
[[ -z $currentVersion ]] && {
echo "Usage: $0 <appversion>"
echo "eg: $0 v1.5.0"
}
find ./openreplay -type f -iname chart.yaml -exec sed -i "s/AppVersion.*/AppVersion: \"$currentVersion\"/g" {} \;
sed -i "s/fromVersion.*/fromVersion: \"$currentVersion\"/g" vars.yaml
sed -i "s/version=.*/version=\"$currentVersion\"/g" init.sh