Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- download_link="$1"
- container_mountpt="/home/mega/host"
- mega_cmd="mega-get '${download_link}' ${container_mountpt}"
- docker run --rm \
- --mount "type=bind,src=$PWD,dst=${container_mountpt}" \
- --hostname 'megatools' \
- -it synthbot/megaclient:latest bash -c "${mega_cmd}"
Advertisement
Add Comment
Please, Sign In to add comment