From 38ca6aced78182394ccea4ccb7833ec59b69ef3e Mon Sep 17 00:00:00 2001 From: Alexander Eimer Date: Wed, 25 Oct 2023 12:42:24 +0200 Subject: [PATCH] fix: mv --- .ci-scripts/install-packages.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci-scripts/install-packages.sh b/.ci-scripts/install-packages.sh index 48ee280..4e78f19 100755 --- a/.ci-scripts/install-packages.sh +++ b/.ci-scripts/install-packages.sh @@ -36,5 +36,8 @@ fi echo "Installing yq" wget -q -O yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 chmod +x yq -test "$runnerType" = "gitlab" && mv yq /usr/bin/yq -test "$runnerType" = "github" && sudo mv yq /usr/bin/yq +if [[ "$runnerType" == "gitlab" ]]; then + mv yq /usr/bin/yq +elif [[ "$runnerType" == "github" ]]; then + sudo mv yq /usr/bin/yq +fi