From 9c29186b2c92575e09b7b720fa99f7c2bfd907cd Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Tue, 1 Oct 2024 19:47:59 -0700 Subject: [PATCH] Fix linting issues --- ci/update_distros.sh | 1 - ci/update_versions.sh | 2 +- distros_supported.yml | 1 - node.sh | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/update_distros.sh b/ci/update_distros.sh index de776e700..36ff2d988 100755 --- a/ci/update_distros.sh +++ b/ci/update_distros.sh @@ -90,7 +90,6 @@ cat <.distros_supported.yml # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - EOT _vagrant_pull "rocky_9" "rockylinux/9" "rocky-linux-cloud" "rocky-linux-9" diff --git a/ci/update_versions.sh b/ci/update_versions.sh index 0862d0842..c1f202efe 100755 --- a/ci/update_versions.sh +++ b/ci/update_versions.sh @@ -15,7 +15,7 @@ if [[ ${OS_DEBUG:-false} == "true" ]]; then fi # Update GitHub Action commit hashes -gh_actions=$(grep -r "uses: [a-zA-Z\-]*/[\_a-z\-]*@" .github/ | sed 's/@.*//' | awk -F ': ' '{ print $3 }' | sort -u ) +gh_actions=$(grep -r "uses: [a-zA-Z\-]*/[\_a-z\-]*@" .github/ | sed 's/@.*//' | awk -F ': ' '{ print $3 }' | sort -u) for action in $gh_actions; do commit_hash=$(git ls-remote "https://github.com/$action" | grep 'refs/tags/[v]\?[0-9][0-9\.]*$' | sed 's|refs/tags/[vV]\?[\.]\?||g' | sort -u -k2 -V | tail -1 | awk '{ printf "%s # %s\n",$1,$2 }') # shellcheck disable=SC2267 diff --git a/distros_supported.yml b/distros_supported.yml index 04e9d3901..e79ea44e1 100644 --- a/distros_supported.yml +++ b/distros_supported.yml @@ -7,7 +7,6 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - rocky_9: name: rockylinux/9 vb_controller: IDE Controller diff --git a/node.sh b/node.sh index 36685bbe6..7caaa3398 100755 --- a/node.sh +++ b/node.sh @@ -69,7 +69,7 @@ while getopts "h?v:c:" opt; do esac done -if ${ID,,} == ubuntu; then +if [ "${ID,,}" == "ubuntu" ]; then sudo apt-get install -y -qq -o=Dpkg::Use-Pty=0 "linux-modules-extra-$(uname -r)" fi