Skip to content

Commit

Permalink
chore: change yq installation method to use wget
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ovi committed Aug 15, 2024
1 parent 30322cd commit 32406ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common-utils-extras/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Common Utilities Extras",
"id": "common-utils-extras",
"version": "1.2.0",
"version": "1.2.1",
"description": "More Common utilities for development containers",
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
Expand Down
6 changes: 5 additions & 1 deletion src/common-utils-extras/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -eax

ARCH=amd64
if [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi

# add repo for gum
mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | gpg --dearmor -o /etc/apt/keyrings/charm.gpg
Expand Down Expand Up @@ -34,7 +37,8 @@ EOF

# install yq
sudo -iu $_REMOTE_USER <<EOF
curl -sS https://webinstall.dev/yq | bash
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$ARCH -O /usr/bin/yq &&\
chmod +x /usr/bin/yq
EOF

# cleanup
Expand Down

0 comments on commit 32406ac

Please sign in to comment.