Skip to content

Commit 778ecf9

Browse files
committed
fix package installation for windows
Signed-off-by: FaithKovi <faithkovivera@gmail.com>
1 parent 936e1a2 commit 778ecf9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

install.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ while true; do
3232
break
3333

3434
elif [[ $system == "CYGWIN" || "$(uname)" == * ]]; then
35-
packages=("git" "gh" "curl" "nodejs")
36-
37-
for package in "${packages[@]}"; do
38-
if ! command -v "$package" &> /dev/null; then
39-
echo "Installing $package..."
40-
apt-cyg install "$package"
41-
else
42-
echo "$package is already installed."
43-
fi
44-
done
35+
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
36+
choco install -y git gh curl nodejs
4537
fi
4638

4739
done

0 commit comments

Comments
 (0)