]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/sync-pull: fix test for 'highest_combo'
authorDan Mick <dan.mick@redhat.com>
Mon, 8 Jul 2024 18:34:58 +0000 (11:34 -0700)
committerDan Mick <dan.mick@redhat.com>
Mon, 8 Jul 2024 18:34:58 +0000 (11:34 -0700)
it's a string, not a number

Signed-off-by: Dan Mick <dan.mick@redhat.com>
scripts/sync-pull

index f97242b4859b0d61ddd432733be6b103d2c294a0..dfc6dbdb6025f02c82cc1035d8ba2ca4c39e6bac 100755 (executable)
@@ -61,7 +61,7 @@ fi
 
 if [[ "$project" == "ceph" ]] ; then
   # Replace $highest_combo with your own DISTRO/VERSION if you don't want to sync from the repo with the most packages.
-  if [[ $highest_combo -gt 0 ]] ; then
+  if [[ -n "$highest_combo" ]] ; then
     deb_cmd="ubuntu@chacra.ceph.com:/opt/repos/$project/$release/$sha1/$highest_combo/flavors/default/* /opt/repos/$project/$relver/debian/jessie/"
     echo $deb_cmd
     echo "--------------------------------------------"