remove unnecessary bashisms

i9ce
Maxwell G 2 years ago
parent a7e7605670
commit e967649fbc
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -114,18 +114,18 @@ errors rpm_eval -E '%%ansible_collection_url'
echo echo
echo echo
echo "Ensure macro works when both arguments are passed and no control macros are set" echo "Ensure macro works when both arguments are passed and no control macros are set"
[[ $(rpm_eval -E '%%ansible_collection_url community general') == \ [ "$(rpm_eval -E '%%ansible_collection_url community general')" = \
"https://galaxy.ansible.com/community/general" ]] "https://galaxy.ansible.com/community/general" ]
echo echo
echo "Ensure macro works with the control macros" echo "Ensure macro works with the control macros"
[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \ [ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
-E '%%ansible_collection_url') == "https://galaxy.ansible.com/ansible/posix" ]] -E '%%ansible_collection_url')" = "https://galaxy.ansible.com/ansible/posix" ]
echo echo
echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros" 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' \ [ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
-E '%%ansible_collection_url community general') == "https://galaxy.ansible.com/community/general" ]] -E '%%ansible_collection_url community general')" = "https://galaxy.ansible.com/community/general" ]

Loading…
Cancel
Save