Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 301e739f authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "User "return" instead of "exit" in shell scripts" am: 7d5d4da4 am:...

Merge "User "return" instead of "exit" in shell scripts" am: 7d5d4da4 am: 879d99bf am: f82ad46c

Change-Id: Id675e97e4b50b0e5a39e652ebeaf34228e9d2a44
parents 08887414 f82ad46c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ function CompileBluetoothPacketsPython3 {

if [[ "${BASH_SOURCE[0]}" == "${0}" ]] ; then
    UsageSourcedNotExecuted
    exit 1
    return 1
fi

if [[ -z "$ANDROID_BUILD_TOP" ]] ; then
+5 −5
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ function menu-adb() {
    result=0
    if [ $LEN -lt 1 ]; then
        echo "No devices connected!"
        exit 1
        return 1
    fi

    if [ "$LEN" == "" ]; then
@@ -47,7 +47,7 @@ function menu-adb() {
        echo
        echo "Please choose a correct index!" 1>&2
        echo
        exit 1
        return 1
    fi

    SERIAL=${SERIALS[$answer]}
@@ -72,7 +72,7 @@ function get-android-root() {
        echo
        echo "Needs to be ran in the android tree"
        echo
        exit 1
        return 1
    fi
    echo "${android_root}"
}
@@ -100,7 +100,7 @@ if [ $# -gt 0 ]; then
            echo " -h | Help(this) Menu"
            echo " -d | Dry run; just prints commands"
            echo
            exit 0
            return 0
        elif [ "$var" == "-d" ]; then
            DRY_RUN="echo"
        elif [ "$var" == "-b" ]; then
@@ -122,7 +122,7 @@ if [ "${CERT_SERIAL}" == "${DUT_SERIAL}" ]; then
    echo
    echo "ERROR: CERT and DUT cannot be the same device, or you only have one device connected!"
    echo
    exit 1
    return 1
fi

## Start builds