Add WSL support to script
[jackhill/qmk/firmware.git] / util / qmk_install.sh
1 #!/bin/sh
2 # Pick the correct install script based on the current OS
3
4 util_dir=$(dirname "$0")
5
6 case $(uname -a) in
7 *Darwin*)
8 exec "${util_dir}/macos_install.sh"
9 ;;
10 *Linux*Microsoft*)
11 exec "${util_dir}/wsl_install.sh"
12 ;;
13 *Linux*)
14 exec "${util_dir}/linux_install.sh"
15 ;;
16 MSYS_NT*|MINGW64_NT*|MINGW32_NT*)
17 exec "${util_dir}/msys2_install.sh"
18 ;;
19 *)
20 echo "Environment not support. Pleas see https://docs.qmk.fm for details on how to configure the QMK Firmware build tools"
21 esac