3 if [ "$#" -ne 2 ]; then
4 echo This script compares docker-manifest.csv with docker-manifest-staging.csv to verify that staging has later versions than release.
5 echo "$0 <docker-manifest.csv> <docker-manifest-staging.csv>"
9 if [ -z "$WORKSPACE" ]; then
10 export WORKSPACE=`git rev-parse --show-toplevel`
16 for line in $(join -t, $1 $2 | tail -n +2); do
17 image=$(echo $line | cut -d , -f 1)
18 release=$(echo $line | cut -d , -f 2)
19 staging=$(echo $line | cut -d , -f 3)
21 if [[ "${staging}_" < "${release}_" ]]; then
22 echo "[WARNING] $image:$staging is older than $release."