From 6229a56b90d30245c56d7c7bf661e2d20e6f01e1 Mon Sep 17 00:00:00 2001 From: Jose Riguera Date: Mon, 14 Aug 2017 17:03:06 +0200 Subject: [PATCH] fix ls listing the package versions --- packages/pip/packaging | 2 +- packages/setuptools/packaging | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pip/packaging b/packages/pip/packaging index 9be37a4..2d375a6 100644 --- a/packages/pip/packaging +++ b/packages/pip/packaging @@ -4,7 +4,7 @@ set -e -x # Grab the latest versions that are in the directory -PIP_VERSION=$(ls -r pip/pip-*.tar.gz | sed 's/.*\/pip-\(.*\)\.tar\.gz$/\1/' | head -1) +PIP_VERSION=$(ls -r -v pip/pip-*.tar.gz | sed 's/.*\/pip-\(.*\)\.tar\.gz$/\1/' | head -1) BOSH_PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/packages} echo "Extracting pip ${PIP_VERSION} ..." diff --git a/packages/setuptools/packaging b/packages/setuptools/packaging index 30f86a8..30beb78 100644 --- a/packages/setuptools/packaging +++ b/packages/setuptools/packaging @@ -4,7 +4,7 @@ set -e -x # Grab the latest versions that are in the directory -SETUPTOOLS_VERSION=$(ls -r setuptools/setuptools-*.tar.gz | sed 's/.*\/setuptools-\(.*\)\.tar\.gz$/\1/' | head -1) +SETUPTOOLS_VERSION=$(ls -r -v setuptools/setuptools-*.tar.gz | sed 's/.*\/setuptools-\(.*\)\.tar\.gz$/\1/' | head -1) BOSH_PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/packages} echo "Extracting setuptools ${SETUPTOOLS_VERSION} ... "