We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b9b693 + ecf6889 commit 94e41c6Copy full SHA for 94e41c6
install-binary.sh
@@ -55,6 +55,7 @@ initOS() {
55
OS=$(uname -s)
56
57
case "$OS" in
58
+ Windows_NT) OS='windows' ;;
59
# Msys support
60
MSYS*) OS='windows' ;;
61
# Minimalist GNU for Windows
@@ -123,6 +124,9 @@ downloadFile() {
123
124
installFile() {
125
tar xzf "$PLUGIN_TMP_FILE" -C "$HELM_TMP"
126
HELM_TMP_BIN="$HELM_TMP/diff/bin/diff"
127
+ if [ "${OS}" = "windows" ]; then
128
+ HELM_TMP_BIN="$HELM_TMP_BIN.exe"
129
+ fi
130
echo "Preparing to install into ${HELM_PLUGIN_DIR}"
131
mkdir -p "$HELM_PLUGIN_DIR/bin"
132
cp "$HELM_TMP_BIN" "$HELM_PLUGIN_DIR/bin"
0 commit comments