summaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts/check-sorted.sh
diff options
context:
space:
mode:
authorHelen Chen <helen.chen@huawei.com>2018-05-09 22:15:21 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-09 22:15:21 +0000
commit25411be2640bd9d76fd8c2ea1dcad15fbbc7aeb3 (patch)
tree636c962e3d8ee4ba01ff67bb0bc9b34804527a8b /version-manifest/src/main/scripts/check-sorted.sh
parent5da781e6b4ec9f4afe489bc92a61831c4536dcd6 (diff)
parent64c540bd168c463f1bb1ba08b7c1a803eee24fcb (diff)
Merge "Add script to sync heat template from manifest"
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