Skip to content
Snippets Groups Projects
Unverified Commit a8d44e2c authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by GitHub
Browse files

Merge pull request #1002 from t-woerner/fix_spec_file_for_loop

ansible-freeipa.spec.in: Fix for loop with wildcard
parents c5ba88d7 27cbd401
Branches
Tags
No related merge requests found
...@@ -117,12 +117,13 @@ to get the needed requrements to run the tests. ...@@ -117,12 +117,13 @@ to get the needed requrements to run the tests.
# Fix python modules and module utils: # Fix python modules and module utils:
# - Remove shebang # - Remove shebang
# - Remove execute flag # - 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 sed -i '1{/\/usr\/bin\/python*/d;}' $i
chmod a-x $i chmod a-x $i
done 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 do
sed -i '{s@/usr/bin/python*@%{python}@}' $i sed -i '{s@/usr/bin/python*@%{python}@}' $i
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment