]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build/build/setup_rpm: fix syntax error 2301/head
authorDan Mick <dan.mick@redhat.com>
Fri, 6 Dec 2024 23:39:32 +0000 (15:39 -0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 6 Dec 2024 23:40:47 +0000 (15:40 -0800)
Reversed the =~ operator when porting change from ceph-dev-new-build

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ceph-dev-build/build/setup_rpm

index d8a1cb4557faa50292710038c95e5e89f456539a..786e6d82daef8d7dbe44e6954fd35f70ddfd7581 100755 (executable)
@@ -44,7 +44,7 @@ pwd
 
 setup_rpm_build_deps
 
-if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" ~= 8|9 ]] ;
+if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ;
 then
     podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD $CONTAINER_REPO_HOSTNAME/$CONTAINER_REPO_ORGANIZATION
 fi