From 2804ec3f8391d03b7bc9a63996160df76ec2ca1c Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Tue, 26 Mar 2024 14:46:11 +0100 Subject: [PATCH] utils/build-galaxy-release.sh: Fix offline default value The offline default value was 0, which resulted in 0 for ${offline/1/--offline}. This broke the ansible-galaxy collection install call. --- utils/build-galaxy-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/build-galaxy-release.sh b/utils/build-galaxy-release.sh index 3c9c609a..a1681e05 100755 --- a/utils/build-galaxy-release.sh +++ b/utils/build-galaxy-release.sh @@ -35,7 +35,7 @@ all=0 keep=0 install=0 path= -offline=0 +offline= galaxy_version= while getopts "ahkio:p:" arg; do case $arg in @@ -127,7 +127,7 @@ sed -i -e "s/name: .*/name: \"$name\"/" galaxy.yml find . -name "*~" -exec rm {} \; -if [ $offline == 0 ]; then +if [ $offline != 1 ]; then echo "Creating CHANGELOG.rst..." "$(dirname "$0")/changelog" --galaxy > CHANGELOG.rst echo -e "\033[ACreating CHANGELOG.rst... \033[32;1mDONE\033[0m" -- GitLab