mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
CI: static-checks: Check params have a value
Check that the `check_url()` parameters have a value. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
563ea020b0
commit
efa8e6547c
@ -494,8 +494,11 @@ EOF
|
|||||||
|
|
||||||
check_url()
|
check_url()
|
||||||
{
|
{
|
||||||
local url="$1"
|
local url="${1:-}"
|
||||||
local invalid_urls_dir="$2"
|
[ -n "$url" ] || die "need URL to check"
|
||||||
|
|
||||||
|
local invalid_urls_dir="${2:-}"
|
||||||
|
[ -n "$invalid_urls_dir" ] || die "need invalid URLs directory"
|
||||||
|
|
||||||
local curl_out=$(mktemp)
|
local curl_out=$(mktemp)
|
||||||
files_to_remove+=("${curl_out}")
|
files_to_remove+=("${curl_out}")
|
||||||
|
Loading…
Reference in New Issue
Block a user