diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 18:26:38 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 21:30:55 +0300 |
| commit | 9c582fc797c3fbddd753791aab279dd2ad27b9c4 (patch) | |
| tree | d0bf3eb851ff38ad7552c27235c93f845885a8ff /util | |
| parent | 477bd4b948a7399bcb8ba057362c66278e6b3abf (diff) | |
| download | qmk_firmware-9c582fc797c3fbddd753791aab279dd2ad27b9c4.tar.gz qmk_firmware-9c582fc797c3fbddd753791aab279dd2ad27b9c4.zip | |
Add install dependencies
Diffstat (limited to 'util')
| -rw-r--r-- | util/wsl_install.sh | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/util/wsl_install.sh b/util/wsl_install.sh index f9c7f6090..0964929e7 100644 --- a/util/wsl_install.sh +++ b/util/wsl_install.sh | |||
| @@ -40,10 +40,6 @@ function install_drivers { | |||
| 40 | popd > /dev/null | 40 | popd > /dev/null |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | echo "Installing dependencies (p7zip-full, wget)" | ||
| 44 | echo "This will ask for the sudo password" | ||
| 45 | sudo apt-get install p7zip-full wget | ||
| 46 | |||
| 47 | dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | 43 | dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) |
| 48 | 44 | ||
| 49 | if [[ $dir != /mnt/* ]]; | 45 | if [[ $dir != /mnt/* ]]; |
| @@ -56,6 +52,24 @@ fi | |||
| 56 | 52 | ||
| 57 | pushd "$dir" | 53 | pushd "$dir" |
| 58 | 54 | ||
| 55 | while true; do | ||
| 56 | echo | ||
| 57 | echo "Do you want to install all toolchain dependencies needed for compiling QMK?" | ||
| 58 | echo "This will run install_dependencies.sh, which calls apt-get upgrade." | ||
| 59 | echo "If you don't want that, you can install the dependencies manually." | ||
| 60 | read -p "(Y/N) " res | ||
| 61 | case $res in | ||
| 62 | [Yy]* ) sudo ./install_dependencies.sh; break;; | ||
| 63 | [Nn]* ) break;; | ||
| 64 | * ) echo "Invalid answer";; | ||
| 65 | esac | ||
| 66 | done | ||
| 67 | |||
| 68 | echo "Installing dependencies needed for the installation (p7zip-full, wget)" | ||
| 69 | echo "This will ask for the sudo password" | ||
| 70 | sudo apt-get install p7zip-full wget | ||
| 71 | |||
| 72 | |||
| 59 | if [ ! -d "$download_dir" ]; then | 73 | if [ ! -d "$download_dir" ]; then |
| 60 | install_utils | 74 | install_utils |
| 61 | else | 75 | else |
