From 27cbd401825a5f88d903b2cad9f52c86394ca51f Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 5 Dec 2022 20:02:09 +0100
Subject: [PATCH] ansible-freeipa.spec.in: Fix for loop with wildcard

The issue within the for loops to remove python shebangs and to remove the
execution flag from python files has been solved.
---
 utils/ansible-freeipa.spec.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/utils/ansible-freeipa.spec.in b/utils/ansible-freeipa.spec.in
index 960c3000..7b1cbdc0 100644
--- a/utils/ansible-freeipa.spec.in
+++ b/utils/ansible-freeipa.spec.in
@@ -117,12 +117,13 @@ to get the needed requrements to run the tests.
 # Fix python modules and module utils:
 # - Remove shebang
 # - Remove execute flag
-for i in roles/ipa*/library/*.py roles/ipa*/module_utils/*.py plugins/*/*.py; do
+for i in roles/ipa*/library/*.py roles/ipa*/module_utils/*.py plugins/*/*.py;
+do
     sed -i '1{/\/usr\/bin\/python*/d;}' $i
     chmod a-x $i
 done
 
-for i in utils/*.py utils/new_module utils/changelog utils/ansible-doc-test
+for i in utils/*.py utils/new_module utils/changelog utils/ansible-doc-test;
 do
     sed -i '{s@/usr/bin/python*@%{python}@}' $i
 done
-- 
GitLab