Last active
August 5, 2021 07:23
-
-
Save rummelonp/cea7ce7398c0338c6aa41db8d70dba30 to your computer and use it in GitHub Desktop.
複数 Android 端末繋いでる時にまとめて adb 発行するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
declare -a devices=($(adb devices | sed '1,1d' | awk '{ print $1 }')) | |
for device in ${devices[@]}; do | |
declare cmd="adb -s ${device} ${@}" | |
echo "${cmd}" | |
eval "${cmd}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment