aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>2020-02-18 21:05:20 +0100
committerGitHub <noreply@github.com>2020-02-18 12:05:20 -0800
commit1566f0a9978b7799741d9499228d525aa5019258 (patch)
treef2eeb7d6b1254e92df020d18fe46040fbfc5a923
parent8225b172b984b18510e856c81f75ec137e0abc19 (diff)
downloadqmk_firmware-1566f0a9978b7799741d9499228d525aa5019258.tar.gz
qmk_firmware-1566f0a9978b7799741d9499228d525aa5019258.zip
Made windows driver installation accept y as All to allow CI (#8189)
* Made windows driver installation accept y as all to allow CI * Fix some formatting * Made None default
-rwxr-xr-xutil/win_shared_install.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh
index 7ad000bfc..1265cb027 100755
--- a/util/win_shared_install.sh
+++ b/util/win_shared_install.sh
@@ -37,7 +37,7 @@ function install_utils {
37function install_drivers { 37function install_drivers {
38 pushd "$download_dir" 38 pushd "$download_dir"
39 cp -f "$dir/drivers.txt" . 39 cp -f "$dir/drivers.txt" .
40 echo 40 echo
41 cmd.exe //c "qmk_driver_installer.exe $1 $2 drivers.txt" 41 cmd.exe //c "qmk_driver_installer.exe $1 $2 drivers.txt"
42 popd > /dev/null 42 popd > /dev/null
43} 43}
@@ -62,19 +62,19 @@ fi
62while true; do 62while true; do
63 echo 63 echo
64 echo "Which USB drivers do you want to install?" 64 echo "Which USB drivers do you want to install?"
65 echo "(A)all - All supported drivers will be installed" 65 echo "(A)ll - All supported drivers will be installed"
66 echo "(C)onnected - Only drivers for connected keyboards (in bootloader/flashing mode)" 66 echo "(C)onnected - Only drivers for connected keyboards (in bootloader/flashing mode)"
67 echo " will be installed" 67 echo " will be installed"
68 echo "(F)force - Like all, but will also override existing drivers for connected" 68 echo "(F)orce - Like all, but will also override existing drivers for connected"
69 echo " keyboards" 69 echo " keyboards"
70 echo "(N)one - No drivers will be installed," 70 echo "(N)one - No drivers will be installed,"
71 echo " flashing your keyboard will most likely not work" 71 echo " flashing your keyboard will most likely not work"
72 read -p "(A/C/F/N)? " res 72 read -p "(a/c/f/N)? " res
73 case $res in 73 case $res in
74 [Aa]* ) install_drivers --all; break;; 74 [AaYy]* ) install_drivers --all; break;;
75 [Cc]* ) install_drivers; break;; 75 [Cc]* ) install_drivers; break;;
76 [Ff]* ) install_drivers --all --force; break;; 76 [Ff]* ) install_drivers --all --force; break;;
77 [Nn]* ) break;; 77 [Nn]* | "" ) break;;
78 * ) echo "Invalid answer";; 78 * ) echo "Invalid answer";;
79 esac 79 esac
80done 80done