mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-29 19:00:34 +00:00
Enable to specify port
This commit is contained in:
+9
-2
@@ -20,8 +20,15 @@ function prepare_geny_cloud() {
|
||||
|
||||
template=$(get_value '.template')
|
||||
device=$(get_value '.device')
|
||||
echo "Starting \"$device\" with template name \"$template\"..."
|
||||
gmtool --cloud admin startdisposable "${template}" "${device}"
|
||||
port=$(get_value '.port')
|
||||
|
||||
if [[ $port != null ]]; then
|
||||
echo "Starting \"$device\" with template name \"$template\" on port \"$port\"..."
|
||||
gmtool --cloud admin startdisposable "${template}" "${device}" --adb-serial-port "${port}"
|
||||
else
|
||||
echo "Starting \"$device\" with template name \"$template\"..."
|
||||
gmtool --cloud admin startdisposable "${template}" "${device}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user