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:
Chelsea Mafrica
2023-12-11 16:07:19 -08:00
parent ee74fca92c
commit a9d360728e

View File

@@ -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.'