]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-push: Use sort -V 1793/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 5 Apr 2021 15:41:14 +0000 (11:41 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 5 Apr 2021 15:41:14 +0000 (11:41 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/sync-push

index 859ab39d3e37cba03aab87782c288cc0f6be1054..1192ca5177d457f3a13d6c2ce4c54edfd5a3bd7c 100644 (file)
@@ -12,7 +12,7 @@ releases=${*:-"nautilus octopus pacific"}
 
 ceph_sync() {
   release=$1
-  for path in $(ls -d /opt/repos/ceph/* | grep $release | sort -t. -k3 -n); do
+  for path in $(ls -d /opt/repos/ceph/* | grep $release | sort -V); do
 
     # We started using the new /opt/repos/ceph/$release-X.X.X format with Octopus.
     # Older releases have all packages in one big $release dir without a trailing "-X.X.X" so we need to adjust paths accordingly.