File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
charts/hwameistor-operator Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ rm -rf hwameistor-operator
1919oldVersion=$( ss=$( grep " VERSION" config) && echo ${ss#* =} )
2020echo " oldVersion: $oldVersion "
2121OS=$( uname)
22- if [ " $OS " == " Darwin" ]; then
23- sed -i ' ' " s/$oldVersion /$releaseVersion /g" config
24- elif [ " $OS " == " Linux" ]
22+ if [ " $OS " == " Darwin" ]; then
23+ sed -i ' ' " s/$oldVersion /$releaseVersion /g" config
24+ elif [ " $OS " == " Linux" ]; then
2525 sed -i " s/$oldVersion /$releaseVersion /g" config
26- then
27- echo " Unsupported OS $OS " && exit 1
26+ else
27+ echo " Unsupported OS: $OS . Please use either 'Darwin' or 'Linux'. " && exit 1
2828fi
2929
3030# download specified version chart
@@ -38,7 +38,7 @@ echo "Step2: do custom actions"
3838oldValue1=" hwameistorImageRegistry: ghcr.io"
3939newValue1=" hwameistorImageRegistry: ghcr.m.daocloud.io"
4040oldValue2=" k8sImageRegistry: registry.k8s.io"
41- newValue2=" k8sImageRegistry: m.daocloud.io/registry.k8s .io"
41+ newValue2=" k8sImageRegistry: k8s. m.daocloud.io"
4242
4343target_file=" hwameistor-operator/values.yaml"
4444
You can’t perform that action at this time.
0 commit comments