Browse Source

Add install dependencies

pull/1337/head
Fred Sundvik 7 years ago
parent
commit
9c582fc797
1 changed files with 18 additions and 4 deletions
  1. +18
    -4
      util/wsl_install.sh

+ 18
- 4
util/wsl_install.sh View File

@ -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


Loading…
Cancel
Save