Skip to content

Commit 59f28b8

Browse files
committed
fix(src/all): Update install.sh scripts to check and install jq package
1 parent 5e0676d commit 59f28b8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/gcloud-cli/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ check_root
140140
# Run checks
141141
check_system
142142
check_pacman
143+
check_and_install_packages jq
143144

144145
install_gcp_cli
145146

src/terraform/install.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ get_previous_version() {
262262
prev_version=${!variable_name}
263263

264264
output=$(curl -s "$repo_url")
265-
266-
# install jq
267-
check_and_install_packages jq
268-
269265
message=$(echo "$output" | jq -r '.message')
270266

271267
if [[ $message == "API rate limit exceeded"* ]]; then
@@ -341,7 +337,7 @@ ensure_cosign() {
341337
}
342338

343339
# Dependencies
344-
check_and_install_packages curl ca-certificates gnupg coreutils dnsutils git terraform unzip
340+
check_and_install_packages curl ca-certificates gnupg jq coreutils dnsutils git terraform unzip
345341

346342
if [ "${ENABLE_SHELL_COMPLETION}" = "true" ]; then
347343
echo "Enabling shell auto-completion for Terraform..."

0 commit comments

Comments
 (0)