diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-03-09 01:47:41 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-03-09 01:47:41 -0500 |
commit | 80d1bc906ee602d108cf900f69138368dd5a44d9 (patch) | |
tree | e323d144e93759ef5e32d21b26f117c6d40be998 /setenv-android.sh | |
parent | 22d6374ce7151ad030a3194edf2cb37a30318820 (diff) | |
download | cryptopp-git-80d1bc906ee602d108cf900f69138368dd5a44d9.tar.gz |
Added missing 0 return code
Diffstat (limited to 'setenv-android.sh')
-rwxr-xr-x | setenv-android.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/setenv-android.sh b/setenv-android.sh index 234b0fd7..b94a08fc 100755 --- a/setenv-android.sh +++ b/setenv-android.sh @@ -207,8 +207,8 @@ fi # Error checking if [ ! -e "$AOSP_TOOLCHAIN_PATH/$RANLIB" ]; then - echo "ERROR: Failed to find Android ranlib. Please edit this script." - # exit 1 + echo "ERROR: Failed to find Android ranlib. Please edit this script." + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 fi # Error checking @@ -219,8 +219,8 @@ fi # Error checking if [ ! -e "$AOSP_TOOLCHAIN_PATH/$AS" ]; then - echo "ERROR: Failed to find Android as. Please edit this script." -# exit 1 + echo "ERROR: Failed to find Android as. Please edit this script." + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 fi # Error checking @@ -339,3 +339,5 @@ if [ ! -z "$VERBOSE" ] && [ "$VERBOSE" != "0" ]; then echo "AOSP_BITS_INC: $AOSP_BITS_INC" fi fi + +[ "$0" = "$BASH_SOURCE" ] && exit 0 || return 0 |