From e967649fbc346070d998c134875ab6d5d074be6f Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Thu, 11 May 2023 22:52:54 +0000 Subject: [PATCH] remove unnecessary bashisms --- ansible-packaging.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible-packaging.spec b/ansible-packaging.spec index 3b8cd3f..03d5a78 100644 --- a/ansible-packaging.spec +++ b/ansible-packaging.spec @@ -114,18 +114,18 @@ errors rpm_eval -E '%%ansible_collection_url' echo echo echo "Ensure macro works when both arguments are passed and no control macros are set" -[[ $(rpm_eval -E '%%ansible_collection_url community general') == \ - "https://galaxy.ansible.com/community/general" ]] +[ "$(rpm_eval -E '%%ansible_collection_url community general')" = \ + "https://galaxy.ansible.com/community/general" ] echo echo "Ensure macro works with the control macros" -[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \ - -E '%%ansible_collection_url') == "https://galaxy.ansible.com/ansible/posix" ]] +[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \ + -E '%%ansible_collection_url')" = "https://galaxy.ansible.com/ansible/posix" ] echo echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros" -[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \ - -E '%%ansible_collection_url community general') == "https://galaxy.ansible.com/community/general" ]] +[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \ + -E '%%ansible_collection_url community general')" = "https://galaxy.ansible.com/community/general" ]