Synthbot

Mega download

May 11th, 2020 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. download_link="$1"
  4. container_mountpt="/home/mega/host"
  5. mega_cmd="mega-get '${download_link}' ${container_mountpt}"
  6.  
  7. docker run --rm \
  8.     --mount "type=bind,src=$PWD,dst=${container_mountpt}" \
  9.     --hostname 'megatools' \
  10.     -it synthbot/megaclient:latest bash -c "${mega_cmd}"
Advertisement
Add Comment
Please, Sign In to add comment