1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-26 08:43:19 +00:00
dotfiles/bin/drivedl

6 lines
244 B
Bash
Executable file

#!/bin/sh
cook=$(mktemp)
link="https://docs.google.com/uc?export=download&id=$(echo "$1"| cut -d/ -f6)"
code=$(wget --save-cookies "$cook" "$link" -O- | grep -Eo "confirm=[0-9A-Za-z_]+")
aria2c --load-cookies "$cook" "$link&$code" -c -x16 -s16