Skip to content

Commit 94e41c6

Browse files
authored
Merge pull request #412 from itscaro/patch-1
Support busybox in powershell installation
2 parents 2b9b693 + ecf6889 commit 94e41c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install-binary.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ initOS() {
5555
OS=$(uname -s)
5656

5757
case "$OS" in
58+
Windows_NT) OS='windows' ;;
5859
# Msys support
5960
MSYS*) OS='windows' ;;
6061
# Minimalist GNU for Windows
@@ -123,6 +124,9 @@ downloadFile() {
123124
installFile() {
124125
tar xzf "$PLUGIN_TMP_FILE" -C "$HELM_TMP"
125126
HELM_TMP_BIN="$HELM_TMP/diff/bin/diff"
127+
if [ "${OS}" = "windows" ]; then
128+
HELM_TMP_BIN="$HELM_TMP_BIN.exe"
129+
fi
126130
echo "Preparing to install into ${HELM_PLUGIN_DIR}"
127131
mkdir -p "$HELM_PLUGIN_DIR/bin"
128132
cp "$HELM_TMP_BIN" "$HELM_PLUGIN_DIR/bin"

0 commit comments

Comments
 (0)