From 28c00efb9957165c1c9871e76945bd42a4653e08 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Jun 30 2021 15:08:57 +0000 Subject: Update ansible-collection-community-general.spec Signed-off-by: Sagi Shnaidman --- diff --git a/ansible-collection-community-general.spec b/ansible-collection-community-general.spec index 26087a1..0c3f9e2 100644 --- a/ansible-collection-community-general.spec +++ b/ansible-collection-community-general.spec @@ -26,7 +26,7 @@ BuildArch: noarch rm -vr .github .azure-pipelines find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + find -type f -name '.gitignore' -print -delete -sed -i -e 's|env python$|env python3|' scripts/inventory/*.py scripts/vault/*.py +test -d scripts && sed -i -e 's|env python$|env python3|' scripts/inventory/*.py scripts/vault/*.py || echo "nothing to do" %build %ansible_collection_build