mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-06-05 22:53:39 +00:00
8 lines
339 B
Bash
Executable File
8 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
find chart/ -type f -exec sed -i '' "s/0.0.0/$1/g" {} +
|
|
find chart/values.yaml -type f -exec sed -i '' "s/repository: controller/$2/g" {} +
|
|
else
|
|
find chart/ -type f -exec sed -i "s/0.0.0/$1/g" {} +
|
|
find chart/values.yaml -type f -exec sed -i "s/repository: controller/$2/g" {} +
|
|
fi |