mirror of
https://github.com/mozilla/fxa.git
synced 2025-12-13 20:36:41 +01:00
Because: - Script was outdated - More ports are needed to get this working with android emulator on localhost. This Commit: - Introduces a list of known ports - Uses this list for adb-reverse.sh - Uses this list for check-ports.sh
13 lines
293 B
Bash
Executable File
13 lines
293 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
while IFS= read -r line
|
|
do
|
|
echo "Running adb reverse for: $line"
|
|
port=`echo "$line" | cut -d'#' -f1`
|
|
# Edge case for profile server cdn
|
|
if [ "$port" == "1111" ]; then
|
|
adb reverse tcp:1111 tcp:1112
|
|
fi
|
|
adb reverse tcp:$port tcp:$port
|
|
done < "_scripts/ports.txt"
|