Skip to content

Commit e7bf8df

Browse files
committed
fix: chmod on k0sctl after downloading
1 parent 27106a2 commit e7bf8df

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

bin/play

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#! /usr/bin/env bash
22

3-
command -v k0sctl > /dev/null || (
4-
echo "k0sctl not found, installing..." && \
5-
wget -Oq /usr/local/bin/k0sctl https://github.com/k0sproject/k0sctl/releases/latest/download/k0sctl-darwin-x64 && \
6-
echo "k0sctl downloaded"
7-
)
3+
BINARY_PATH="$HOME/.local/bin/k0sctl"
4+
5+
command -v k0sctl >/dev/null || (
6+
echo "k0sctl not found, installing..." &&
7+
wget -O $BINARY_PATH -q https://github.com/k0sproject/k0sctl/releases/latest/download/k0sctl-darwin-x64 &&
8+
chmod +x $BINARY_PATH
9+
echo "k0sctl downloaded"
10+
)
11+
812
k0sctl apply --disable-telemetry

0 commit comments

Comments
 (0)