Fix launch of qmk_driver_installer on msys2
[jackhill/qmk/firmware.git] / util / wsl_install.sh
CommitLineData
28a4e905
FS
1#!/bin/bash
2
aa264644 3dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
a2d3fc98 4pushd "$dir";
28a4e905 5
aa264644
FS
6if [[ $dir != /mnt/* ]];
7then
8 echo
9 echo "You need to clone the qmk_firmware repository outside the linux filesystem."
10 echo "Otherwise the windows executables can't be run."
11 exit 1
12fi
28a4e905 13
28a4e905 14
9c582fc7
FS
15while true; do
16 echo
17 echo "Do you want to install all toolchain dependencies needed for compiling QMK?"
18 echo "This will run install_dependencies.sh, which calls apt-get upgrade."
19 echo "If you don't want that, you can install the dependencies manually."
20 read -p "(Y/N) " res
21 case $res in
22 [Yy]* ) sudo ./install_dependencies.sh; break;;
23 [Nn]* ) break;;
24 * ) echo "Invalid answer";;
25 esac
26done
27
3e4f2f55 28echo "Installing dependencies needed for the installation (unzip, wget)"
9c582fc7 29echo "This will ask for the sudo password"
3e4f2f55 30sudo apt-get install unzip wget
a2d3fc98 31source "$dir/win_shared_install.sh"
3d3999d8 32
aa264644 33popd > /dev/null