Merge "Add check for get_packages argument"

This commit is contained in:
Jenkins
2015-11-10 22:04:51 +00:00
committed by Gerrit Code Review

View File

@@ -1072,6 +1072,10 @@ function get_packages {
local file_to_parse=""
local service=""
if [ $# -ne 1 ]; then
die $LINENO "get_packages takes a single, comma-separated argument"
fi
if [[ -z "$package_dir" ]]; then
echo "No package directory supplied"
return 1