Skip to content

Commit 65433e3

Browse files
yossiovadiaYossi Ovadia
andauthored
fix: handle kubectl installation on macOS without root group (#304)
Co-authored-by: Yossi Ovadia <[email protected]>
1 parent 097812d commit 65433e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

quickstart/install-deps.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ if ! command -v kubectl &> /dev/null; then
6464
echo "Installing kubectl..."
6565
K8S_URL="https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)"
6666
curl -LO "${K8S_URL}/bin/${OS}/${ARCH}/kubectl"
67-
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
67+
if [[ "$OS" == "darwin" ]]; then
68+
sudo install -m 0755 kubectl /usr/local/bin/kubectl
69+
else
70+
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
71+
fi
6872
rm kubectl
6973
fi
7074

0 commit comments

Comments
 (0)