Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 35ec271

Browse files
authored
fix: remove sudo from curl commands to enable HTTP proxy support (#370)
Signed-off-by: Kay Yan <[email protected]>
1 parent b3582a1 commit 35ec271

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

quickstart/install-deps.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,15 @@ done
4949
# Install yq (v4+)
5050
if ! command -v yq &> /dev/null; then
5151
echo "Installing yq..."
52-
sudo curl -sLo /usr/local/bin/yq \
52+
curl -sLo yq \
5353
"https://github.com/mikefarah/yq/releases/latest/download/yq_${OS}_${ARCH}"
54-
sudo chmod +x /usr/local/bin/yq
54+
chmod +x yq
55+
sudo mv yq /usr/local/bin/yq
56+
fi
57+
58+
if ! yq --version 2>&1 | grep -q 'mikefarah'; then
59+
echo "Detected yq is not mikefarah’s yq. Please uninstall your current yq and re-run this script."
60+
exit 1
5561
fi
5662

5763
# Install kubectl

0 commit comments

Comments
 (0)