File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ echo "Scanning and patching files..."
112112# Process values.yaml files
113113while IFS= read -r -d ' ' file; do
114114 file_count=$(( file_count + 1 ))
115- patch_file " $file "
116- rc=$?
115+ patch_file " $file " && rc=$? || rc=$?
117116 if [[ $rc -eq 0 ]]; then
118117 patched_count=$(( patched_count + 1 ))
119118 elif [[ $rc -eq 2 ]]; then
@@ -124,8 +123,7 @@ done < <(find "$CHARTS_DIR" -name "values.yaml" -print0)
124123# Process Chart.yaml files
125124while IFS= read -r -d ' ' file; do
126125 file_count=$(( file_count + 1 ))
127- patch_file " $file "
128- rc=$?
126+ patch_file " $file " && rc=$? || rc=$?
129127 if [[ $rc -eq 0 ]]; then
130128 patched_count=$(( patched_count + 1 ))
131129 elif [[ $rc -eq 2 ]]; then
@@ -136,8 +134,7 @@ done < <(find "$CHARTS_DIR" -name "Chart.yaml" -print0)
136134# Process template files (for direct image references)
137135while IFS= read -r -d ' ' file; do
138136 file_count=$(( file_count + 1 ))
139- patch_file " $file "
140- rc=$?
137+ patch_file " $file " && rc=$? || rc=$?
141138 if [[ $rc -eq 0 ]]; then
142139 patched_count=$(( patched_count + 1 ))
143140 elif [[ $rc -eq 2 ]]; then
You can’t perform that action at this time.
0 commit comments