mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
* java/debug.sh: Print errors correctly if device is ambiguous.
This commit is contained in:
parent
5b65c2ad75
commit
537914561e
@ -104,13 +104,14 @@ if [ -z "$devices" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z $device ]; then
|
||||
device=$devices
|
||||
if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z $device ]; then
|
||||
echo "Multiple devices are available. Please specify one with"
|
||||
echo "the option --device and try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z device ]; then
|
||||
echo "Multiple devices are available. Please pick one using"
|
||||
echo "--device and try again."
|
||||
if [ -z $device ]; then
|
||||
device=$devices
|
||||
fi
|
||||
|
||||
echo "Looking for $package on device $device"
|
||||
@ -189,6 +190,8 @@ if [ "$attach_existing" != "yes" ]; then
|
||||
package_pids=`awk -f tmp.awk <<< $package_pids`
|
||||
fi
|
||||
|
||||
rm tmp.awk
|
||||
|
||||
pid=$package_pids
|
||||
num_pids=`wc -w <<< "$package_pids"`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user