Browse Source

new: [base] add ``yq`` to our base install

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cups_service_alpha
Valentin Lab 2 years ago
parent
commit
63b95117bc
  1. 10
      precise/base-0k/hooks/install.d/00-base.sh

10
precise/base-0k/hooks/install.d/00-base.sh

@ -59,5 +59,11 @@ case $(lsb_release -is) in
;; ;;
esac esac
YQ_VERSION=4.27.3
if ! type -p "yq" 2>/dev/null ||
! version_line=$(yq --version) ||
[[ "${version_line}" != *"${YQ_VERSION}" ]]; then
wget "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64" \
-O /usr/local/bin/yq &&
chmod +x /usr/local/bin/yq
fi
Loading…
Cancel
Save