Changes if condition to selection else

This commit is contained in:
GeorgeRaven
2025-05-25 22:47:41 +01:00
parent eaa09cd779
commit 84618b43f0

View File

@@ -382,8 +382,9 @@ spec:
cd /templates
for file in *.yaml
do
if [ "${file}" == "gitea.yaml" ] || \
[ "${file}" == "rook.yaml"]; then
if [ "${file}" != "gitea.yaml" ] && \
[ "${file}" != "rook.yaml"]; then
else
echo "filtering ${file}"
rm "${file}"
fi