mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
static-checks: Fix directory for github labels
Fix paths for yqdir (where the install_yq.sh script currently is) so that static checks can run without error. Fixes #8595 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019 Intel Corporation
|
||||
# Copyright (c) 2019-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
@@ -15,6 +15,7 @@ script_name=${0##*/}
|
||||
source "/etc/os-release" || "source /usr/lib/os-release"
|
||||
|
||||
self_dir=$(dirname "$(readlink -f "$0")")
|
||||
yqdir="${self_dir}/../../../ci"
|
||||
cidir="${self_dir}/../.."
|
||||
source "${cidir}/common.bash"
|
||||
|
||||
@@ -30,7 +31,7 @@ typeset -r default_color="ffffff"
|
||||
|
||||
need_yq() {
|
||||
# install yq if not exist
|
||||
${cidir}/install_yq.sh
|
||||
${yqdir}/install_yq.sh
|
||||
|
||||
command -v yq &>/dev/null || \
|
||||
die 'yq command not found. Ensure "$GOPATH/bin" is in your $PATH.'
|
||||
|
Reference in New Issue
Block a user