From a9d360728ebe951787db822bb30718577f01b3be Mon Sep 17 00:00:00 2001 From: Chelsea Mafrica Date: Mon, 11 Dec 2023 16:07:19 -0800 Subject: [PATCH] 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 --- tests/cmd/github-labels/github-labels.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/cmd/github-labels/github-labels.sh b/tests/cmd/github-labels/github-labels.sh index b60ca9cc5..3d4a6f91a 100755 --- a/tests/cmd/github-labels/github-labels.sh +++ b/tests/cmd/github-labels/github-labels.sh @@ -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.'