Browse code

Merge "Add check for get_packages argument"

Jenkins authored on 2015/11/11 07:04:51
Showing 1 changed files
... ...
@@ -1072,6 +1072,10 @@ function get_packages {
1072 1072
     local file_to_parse=""
1073 1073
     local service=""
1074 1074
 
1075
+    if [ $# -ne 1 ]; then
1076
+        die $LINENO "get_packages takes a single, comma-separated argument"
1077
+    fi
1078
+
1075 1079
     if [[ -z "$package_dir" ]]; then
1076 1080
         echo "No package directory supplied"
1077 1081
         return 1