gdrive-download.sh 285 B

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