aboutsummaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts/check-sorted.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-09 15:04:32 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-09 15:04:32 -0700
commit64c540bd168c463f1bb1ba08b7c1a803eee24fcb (patch)
tree9fe2896b3a436965566eb5e6028484fd6d538380 /version-manifest/src/main/scripts/check-sorted.sh
parentb8a8ccd85b022503db1aa0691ed1047269fb0757 (diff)
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 <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest/src/main/scripts/check-sorted.sh')
-rwxr-xr-xversion-manifest/src/main/scripts/check-sorted.sh7
1 files changed, 7 insertions, 0 deletions
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 <manifest.csv>"
+ exit 1
+fi
+
LC_ALL=C sort -c $1
retval=$?
if [ $retval -ne 0 ]; then