Merge "Fix adb function." into main

This commit is contained in:
Elliott Hughes
2024-03-21 15:42:02 +00:00
committed by Gerrit Code Review

View File

@@ -1085,7 +1085,12 @@ function cproj()
}
function adb() {
command adb "${@}"
local ADB=$(which adb)
if [ -z "$ADB" ]; then
echo "Command adb not found; try lunch (and building) first?"
return 1
fi
$ADB "${@}"
}
# simplified version of ps; output in the form