mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-27 02:56:50 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user