2
0
mirror of https://github.com/status-im/status-mobile.git synced 2025-02-24 06:18:13 +00:00
status-mobile/scripts/download-package-files.sh
Volodymyr Kozieiev 457f2a157a
Desktop branch merged into develop ()
* Desktop branch merged into develop
* Fixed review notes by yenda
2018-07-23 18:21:31 +03:00

8 lines
328 B
Bash
Executable File

#!/bin/bash
filename=$1
#fileid="1yPTGcPe5DZd3ubzAgUBp3aAQRAOK9eKQ"
fileid=$2
rm -rf ./cookie
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}