keychron_qmk_firmware/util/qmk_install.sh

23 lines
514 B
Bash
Raw Normal View History

#!/bin/sh
# Pick the correct install script based on the current OS
util_dir=$(dirname "$0")
2018-08-12 01:59:26 +06:00
case $(uname -a) in
*Darwin*)
exec "${util_dir}/macos_install.sh"
;;
2018-08-12 01:59:26 +06:00
*Linux*Microsoft*)
exec "${util_dir}/wsl_install.sh"
;;
*Linux*)
exec "${util_dir}/linux_install.sh"
;;
2018-08-12 01:47:25 +06:00
MSYS_NT*|MINGW64_NT*|MINGW32_NT*)
exec "${util_dir}/msys2_install.sh"
;;
*)
2018-08-12 02:01:01 +06:00
echo "Environment not supported. Please see https://docs.qmk.fm for details on how to configure the QMK Firmware build tools manually."
;;
esac