Move directories around

This commit is contained in:
2024-09-04 21:16:19 +01:00
parent 3b2cb3d689
commit 0e34ab7a27
14 changed files with 83 additions and 94 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
#!/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" {} +
find chart/values.yaml -type f -exec sed -i '' "s|controller|$2|g" {} +
find chart/values.yaml -type f -exec sed -i '' "s|latest|$1|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" {} +
find chart/values.yaml -type f -exec sed "s|controller|$2|g" {} +
find chart/values.yaml -type f -exec sed -i "s|latest|$1|g" {} +
fi