mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 13:23:14 +00:00
Merge pull request #1002 from t-woerner/fix_spec_file_for_loop
ansible-freeipa.spec.in: Fix for loop with wildcard
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user