Add a quick check so we don't reintroduce bad arguments as in
Ie1b8d09369281059d21da61b2725a457f708ae9e
Change-Id: Ibebc71791f2743eef64d6f7c2596d54a73ea92aa
... | ... |
@@ -1075,6 +1075,10 @@ function get_packages { |
1075 | 1075 |
local file_to_parse="" |
1076 | 1076 |
local service="" |
1077 | 1077 |
|
1078 |
+ if [ $# -ne 1 ]; then |
|
1079 |
+ die $LINENO "get_packages takes a single, comma-separated argument" |
|
1080 |
+ fi |
|
1081 |
+ |
|
1078 | 1082 |
if [[ -z "$package_dir" ]]; then |
1079 | 1083 |
echo "No package directory supplied" |
1080 | 1084 |
return 1 |