commit | 7d515b5db8e98a54ff9c8c5211383f9f2c33b2db | [log] [tgz] |
---|---|---|
author | Ian Wienand <iwienand@redhat.com> | Mon Nov 09 15:04:32 2015 +1100 |
committer | Ian Wienand <iwienand@redhat.com> | Mon Nov 09 15:04:32 2015 +1100 |
tree | acc9bbf5f1d5601db423656f8d8d402ceb95405a | |
parent | a5e4c0f279b6101436820dbb6b3da3d06131c12d [diff] |
Add check for get_packages argument Add a quick check so we don't reintroduce bad arguments as in Ie1b8d09369281059d21da61b2725a457f708ae9e Change-Id: Ibebc71791f2743eef64d6f7c2596d54a73ea92aa
diff --git a/functions-common b/functions-common index 497bed2..e252139 100644 --- a/functions-common +++ b/functions-common
@@ -1075,6 +1075,10 @@ 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