johnnyapol / RootMyValet

A one-click APK file to root the ZTE Valet and phones similar to it.
GNU General Public License v3.0
23 stars 18 forks source link

Update install-mac-linux.sh #13

Closed elliot-huffman closed 10 years ago

elliot-huffman commented 10 years ago

Added prompt to ask user where the Android SDK is located (to set the android_home var)

Added quotes around "$ANDROID_HOME%\platform-tools\adb" in case of file paths with spaces.

Added "#" comments for ease of debugging

Added functions to separate code into sections for ease of debugging

added initialization

Rewrote initialization so that ANDROID_HOME is cleared for compatibility.

Fixed wording so that the disclaimer section is more readable.

Added a proper bash exit for compatibility with other automation programs (or scripts)

elliot-huffman commented 10 years ago

I also found the "pause" command in the code so I replace it with the appropriate Linux/Mac equivalant

johnnyapol commented 10 years ago

Checked this out on my Ubuntu box and looks great. Thanks!