From 64c540bd168c463f1bb1ba08b7c1a803eee24fcb Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Wed, 9 May 2018 15:04:32 -0700 Subject: Add script to sync heat template from manifest Also clean up other helper scripts Change-Id: Icae9cac8c6e9e3cef5e52e66bf79d6c30d23d235 Issue-ID: INT-495 Signed-off-by: Gary Wu --- version-manifest/src/main/scripts/check-sorted.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'version-manifest/src/main/scripts/check-sorted.sh') diff --git a/version-manifest/src/main/scripts/check-sorted.sh b/version-manifest/src/main/scripts/check-sorted.sh index fa120f399..70ca5ac04 100755 --- a/version-manifest/src/main/scripts/check-sorted.sh +++ b/version-manifest/src/main/scripts/check-sorted.sh @@ -1,4 +1,11 @@ #!/bin/bash + +if [ "$#" -ne 1 ]; then + echo This script checks the input file to verify that it is sorted + echo "$0 " + exit 1 +fi + LC_ALL=C sort -c $1 retval=$? if [ $retval -ne 0 ]; then -- cgit 1.2.3-korg