]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add prompt for re-downloading the utils
authorFred Sundvik <fsundvik@gmail.com>
Sun, 28 May 2017 11:49:58 +0000 (14:49 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Sun, 28 May 2017 18:30:55 +0000 (21:30 +0300)
util/wsl_install.sh

index 9df715b81301fe6c86e9e169af075253058a1725..f9c7f609064de80f6e1f431360e1b6f422dcc7da 100644 (file)
@@ -56,7 +56,19 @@ fi
 
 pushd "$dir"
 
-#install_utils
+if [ ! -d "$download_dir" ]; then
+    install_utils
+else
+    while true; do
+        echo
+        read -p "The utils seem to already be downloaded, do you want to re-download them and update to the newest version (Y/N) " res
+        case $res in
+            [Yy]* ) install_utils; break;;
+            [Nn]* ) break;;
+            * ) echo "Invalid answer";;
+        esac
+    done
+fi
 
 while true; do
     echo