From 5245db664cb31128f8f92fede11962b15a7e121d Mon Sep 17 00:00:00 2001 From: ArenaL5 Date: Mon, 13 Jul 2020 14:53:03 +0200 Subject: Update scripts/adb.sh Also add another error condition. --- scripts/adb.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/adb.sh') diff --git a/scripts/adb.sh b/scripts/adb.sh index fa9e7ab30..89ed33c0a 100755 --- a/scripts/adb.sh +++ b/scripts/adb.sh @@ -38,10 +38,14 @@ else exit 1 fi done - tags=`grep -R 'TAG = ".*"' app/src/main/java/com/* jnidictionaryv1/src/main/java/com/* jnidictionaryv2/src/main/java/com/*` + tags=`grep -R 'TAG = ".*"' ime/app/src/main/java/com/* ime/jnidictionaryv1/src/main/java/com/* ime/jnidictionaryv2/src/main/java/com/*` # We can go back to our original folder now: cd "$oldpath" tags="$(echo $tags | sed -E 's![a-z/A-Z12]*\.java: (protected |private )?(static )?(final )?String [A-Z_]* = "([^\"]*)";!\4!g')" + if [ -z $tags ]; then + echo -e "${error}Aborting.${nocolor} No tags found." + exit 2 + fi tags="$tags dalvikvm System.err AndroidRuntime " comm="adb logcat $(echo "$tags" | sed "s/ /:$1 /g")*:S" echo -e "${color}Running: $nocolor$comm" -- cgit v1.2.3