diff options
| author | Andrea Corallo | 2024-02-28 20:47:57 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2024-02-28 20:47:57 +0100 |
| commit | 1fbe56c32761efdc8d268df80a97a9102d00e109 (patch) | |
| tree | 8d8e76c8ae43c79ef9d76b0f97c12607567664b9 /java/debug.sh | |
| parent | 6de60f33ed5cc438e20400aee83e1e2032773811 (diff) | |
| parent | 05195e129fc933db32c9e08a155a94bfa4d75b54 (diff) | |
| download | emacs-1fbe56c32761efdc8d268df80a97a9102d00e109.tar.gz emacs-1fbe56c32761efdc8d268df80a97a9102d00e109.zip | |
Merge remote-tracking branch 'origin/master' into 'feature/type-hierarchy'
Diffstat (limited to 'java/debug.sh')
| -rwxr-xr-x | java/debug.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/java/debug.sh b/java/debug.sh index 8fc03d014cf..c5d40141355 100755 --- a/java/debug.sh +++ b/java/debug.sh | |||
| @@ -104,13 +104,14 @@ if [ -z "$devices" ]; then | |||
| 104 | exit 1 | 104 | exit 1 |
| 105 | fi | 105 | fi |
| 106 | 106 | ||
| 107 | if [ -z $device ]; then | 107 | if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z $device ]; then |
| 108 | device=$devices | 108 | echo "Multiple devices are available. Please specify one with" |
| 109 | echo "the option --device and try again." | ||
| 110 | exit 1 | ||
| 109 | fi | 111 | fi |
| 110 | 112 | ||
| 111 | if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z device ]; then | 113 | if [ -z $device ]; then |
| 112 | echo "Multiple devices are available. Please pick one using" | 114 | device=$devices |
| 113 | echo "--device and try again." | ||
| 114 | fi | 115 | fi |
| 115 | 116 | ||
| 116 | echo "Looking for $package on device $device" | 117 | echo "Looking for $package on device $device" |
| @@ -189,6 +190,8 @@ if [ "$attach_existing" != "yes" ]; then | |||
| 189 | package_pids=`awk -f tmp.awk <<< $package_pids` | 190 | package_pids=`awk -f tmp.awk <<< $package_pids` |
| 190 | fi | 191 | fi |
| 191 | 192 | ||
| 193 | rm tmp.awk | ||
| 194 | |||
| 192 | pid=$package_pids | 195 | pid=$package_pids |
| 193 | num_pids=`wc -w <<< "$package_pids"` | 196 | num_pids=`wc -w <<< "$package_pids"` |
| 194 | 197 | ||