dot_testing/boxes/phone/init/main.sh

7 lines
201 B
Bash
Raw Normal View History

mkdir -p app_cache
for i in $(cat apps); do
output_name=$(echo $i | awk -F'/' '{print $NF}')
curl "$i" --max-redirs 999 -L -C - -o "app_cache/$output_name"
adb install "app_cache/$output_name"
done