diff options
| author | ArenaL5 <arenal5@gmx.com> | 2020-07-13 12:53:03 +0000 |
|---|---|---|
| committer | ArenaL5 <arenal5@gmx.com> | 2020-07-13 12:53:03 +0000 |
| commit | 5245db664cb31128f8f92fede11962b15a7e121d (patch) | |
| tree | a0d89d49087ffe62eb55e267bc84b191bb698722 /scripts/adb.sh | |
| parent | 85f464e3c01d3540837b78f6d7ac6cdf28e7dc90 (diff) | |
| download | AnySoftKeyboard-5245db664cb31128f8f92fede11962b15a7e121d.tar.gz AnySoftKeyboard-5245db664cb31128f8f92fede11962b15a7e121d.tar.bz2 | |
Update scripts/adb.sh
Also add another error condition.
Diffstat (limited to 'scripts/adb.sh')
| -rwxr-xr-x | scripts/adb.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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" |
