diff --git a/README.md b/README.md index 44651fe..7f3c0b3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ Quick ADB / Fastboot installer for OS X and Linux (minimal_adb_fastboot) ==================== -Quick info: If you are handling with Android M previews, please check out the [preview](https://github.com/simmac/minimal_adb_fastboot/tree/preview) branch! - -Last updated: 5.10.2015 | adb version: 1.0.32 Revision eac51f2bb6a8-android +Last updated: 1.3.2016 | adb version: 1.0.32 Revision eac51f2bb6a8-android ------------------------ Installs the adb and fastboot binaries for OS X and Linux. @@ -31,7 +29,8 @@ Changelog: - 1.2.1 | 13.03.2015 Improved version check by adding a hash-check to compare installed and delivered bin. - 2.0.0 | 14.03.2015 Added Linux support! (experimental, feedback very welcome!) - 3.0.0 | 31.05.2015 Improved code quality and readability a lot by rewriting the whole script and using functions. Added the arguments *uninstall*, *adb* and *fastboot*. **Changed the installation path on OS X to /usr/local/bin !** -- **3.1.0 | 05.10.2015** Updated to newest v23 binaries. Required for Android Marshmallow on flounder. +- 3.1.0 | 05.10.2015 Updated to newest v23 binaries. Required for Android Marshmallow on flounder. +- **3.2.0** | 01.03.2016 Checks if installation directory exists before running the script Support Thread: ---------------- diff --git a/install.sh b/install.sh index 52b286c..e0d27c4 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash clear -echo -e "\n\nQuick adb/fastboot installer 3.1.0\n" +echo -e "\n\nQuick adb/fastboot installer 3.2.0\n" #Gets location of the script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -21,6 +21,14 @@ function oscheck () { BINPATH="$DIR/linux" MD5="md5sum" fi + + #check whether the installation directory exists and creates it if needed. + if [ ! -d "$INSTALLPATH" ]; then + echo -e "The target directory doesn't exist. This script will create the directory for you." + echo -e "You may be asked for your password now. \n" + sudo mkdir $INSTALLPATH + echo -e "\nDirectory created. The installation script will begin now.\n" + fi }