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

Commit 5287e8ef authored by Jack He's avatar Jack He
Browse files

Cert: use "git checkout" instead of "git co"

* Also serach for dalvik instead of out dir

Test: source cert/set_up_and_run_device_cert.sh
Change-Id: I1755c0c46ef79ad6b92be438f2380f3be54e542c
parent d33dfbe1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ function UpFind {


function get-android-root() {
    android_root=$(UpFind -name out -type d)
    android_root=$(UpFind -name dalvik -type d)
    if [[ -z $android_root ]] ; then
        echo
        echo "Needs to be ran in the android tree"
@@ -88,6 +88,7 @@ banner

DRY_RUN=""
DO_BUILD=0
echo "$@"
if [ $# -gt 0 ]; then
    for var in "$@"
    do
@@ -145,7 +146,7 @@ fi
pushd .
cd "${DIR}"
# Reset in case user chooses different item in menu
git co android_devices_config.json
git checkout android_devices_config.json
popd
$DRY_RUN sed -i "s/\"DUT\"/\"${DUT_SERIAL}\"/g" ${DIR}/android_devices_config.json
$DRY_RUN sed -i "s/\"CERT\"/\"${CERT_SERIAL}\"/g" ${DIR}/android_devices_config.json