summaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts/compare-docker-manifests.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-05-09 08:50:23 -0700
committerGary Wu <gary.i.wu@huawei.com>2019-05-09 10:47:33 -0700
commitd285191b63896f5e4d6c98f8cc6ba6b720891757 (patch)
tree414c2f2997e55e81c0698ec60532753ac9b646f1 /version-manifest/src/main/scripts/compare-docker-manifests.sh
parentcffef10f221108cc4f22df0feb5b588c8bc1f29f (diff)
Add script to create docker manifest from oom repo
Change-Id: I09652f812b9c83dd510f75de58e3402572becf79 Issue-ID: INT-1055 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest/src/main/scripts/compare-docker-manifests.sh')
-rwxr-xr-xversion-manifest/src/main/scripts/compare-docker-manifests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/version-manifest/src/main/scripts/compare-docker-manifests.sh b/version-manifest/src/main/scripts/compare-docker-manifests.sh
index 86f8221e9..73591326b 100755
--- a/version-manifest/src/main/scripts/compare-docker-manifests.sh
+++ b/version-manifest/src/main/scripts/compare-docker-manifests.sh
@@ -18,8 +18,8 @@ for line in $(join -t, $1 $2 | tail -n +2); do
release=$(echo $line | cut -d , -f 2)
staging=$(echo $line | cut -d , -f 3)
- if [[ "${staging}_" < "${release}_" ]]; then
- echo "[WARNING] $image:$staging is older than $release."
+ if [[ "${staging//./-}_" < "${release//./-}_" ]]; then
+ echo "[ERROR] $image:$staging is out-of-date vs. release ($release)."
fi
done
exit $err