Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
v3.2.0: Checks if installation directory exists before running the sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
simmac committed Mar 1, 2016
1 parent f0e77ee commit fc1ad77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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:
----------------
Expand Down
10 changes: 9 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -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 )"
Expand All @@ -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
}


Expand Down

0 comments on commit fc1ad77

Please sign in to comment.