tools: Fix shellcheck issues in download-with-oras-cache.sh

Fix shellcheck warnings and notes identified by running
shellcheck --severity=style.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
Fabiano Fidêncio
2026-04-21 18:03:29 +02:00
parent f30af29c56
commit 1ef201c400

View File

@@ -19,9 +19,10 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Source lib.sh for common functions (die, info, get_from_kata_deps, arch_to_golang, etc.)
if [[ -f "${script_dir}/lib.sh" ]]; then
# shellcheck source=/dev/null
source "${script_dir}/lib.sh"
elif [[ -f "${script_dir}/../../tools/packaging/scripts/lib.sh" ]]; then
# When sourced from ci/install_libseccomp.sh in the repo
# shellcheck source=/dev/null
source "${script_dir}/../../tools/packaging/scripts/lib.sh"
fi