summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-05-28 18:26:38 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-05-28 21:30:55 +0300
commit9c582fc797c3fbddd753791aab279dd2ad27b9c4 (patch)
treed0bf3eb851ff38ad7552c27235c93f845885a8ff
parent477bd4b948a7399bcb8ba057362c66278e6b3abf (diff)
Add install dependencies
-rw-r--r--util/wsl_install.sh22
1 files changed, 18 insertions, 4 deletions
diff --git a/util/wsl_install.sh b/util/wsl_install.sh
index f9c7f60906..0964929e7c 100644
--- a/util/wsl_install.sh
+++ b/util/wsl_install.sh
@@ -40,10 +40,6 @@ function install_drivers {
popd > /dev/null
}
-echo "Installing dependencies (p7zip-full, wget)"
-echo "This will ask for the sudo password"
-sudo apt-get install p7zip-full wget
-
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
if [[ $dir != /mnt/* ]];
@@ -56,6 +52,24 @@ fi
pushd "$dir"
+while true; do
+ echo
+ echo "Do you want to install all toolchain dependencies needed for compiling QMK?"
+ echo "This will run install_dependencies.sh, which calls apt-get upgrade."
+ echo "If you don't want that, you can install the dependencies manually."
+ read -p "(Y/N) " res
+ case $res in
+ [Yy]* ) sudo ./install_dependencies.sh; break;;
+ [Nn]* ) break;;
+ * ) echo "Invalid answer";;
+ esac
+done
+
+echo "Installing dependencies needed for the installation (p7zip-full, wget)"
+echo "This will ask for the sudo password"
+sudo apt-get install p7zip-full wget
+
+
if [ ! -d "$download_dir" ]; then
install_utils
else