diff --git a/setup.sh b/setup.sh index 9d0257f..97f59e8 100755 --- a/setup.sh +++ b/setup.sh @@ -64,7 +64,7 @@ if ! [ -e /usr/bin/salt-call ]; then /opt/saltstack/salt/bin/pip3 install "salt==$SALT_VERSION" ln -sfT /opt/saltstack/salt/bin/salt-call /usr/bin/salt-call elif [[ "$DISTRO" == "centos" ]] || [[ "$DISTRO" == "almalinux" ]]; then - if [[ "$DISTRO" == "almalinux" ]] + if [[ "$DISTRO" == "almalinux" ]]; then OS_VERSION="$(python3 -m distro --json | jq -r .version_parts.major)" fi rpm --import https://repo.saltproject.io/salt/py3/redhat/$OS_VERSION/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub