linters: Fix shellcheck warnings in 'utils' scripts.

This commit is contained in:
Rafael Guterres Jeffman
2021-11-24 20:50:15 -03:00
parent 036891d09a
commit 8ba665213f
5 changed files with 34 additions and 33 deletions

View File

@@ -5,7 +5,6 @@ collection="${2-ansible_freeipa}"
collection_prefix="${namespace}.${collection}"
galaxy_version=$(git describe --tags | sed -e "s/^v//")
echo $galaxy_version | grep "-" -q || galaxy_version="${galaxy_version}"
sed -i -e "s/version: .*/version: \"$galaxy_version\"/" galaxy.yml
sed -i -e "s/namespace: .*/namespace: \"$namespace\"/" galaxy.yml
sed -i -e "s/name: .*/name: \"$collection\"/" galaxy.yml