18 lines
575 B
Bash
Executable File
18 lines
575 B
Bash
Executable File
#!/bin/bash
|
|
# Zip coco folder
|
|
# zip -r coco.zip coco
|
|
# tar -czvf coco.tar.gz coco
|
|
|
|
# Set fileid and filename
|
|
filename="coco.zip"
|
|
fileid="1WQT6SOktSe8Uw6r10-2JhbEhMY5DJaph" # coco.zip
|
|
|
|
# Download from Google Drive, accepting presented query
|
|
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}
|
|
rm ./cookie
|
|
|
|
# Unzip
|
|
unzip -q ${filename} # for coco.zip
|
|
# tar -xzf ${filename} # for coco.tar.gz
|