Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #pm u/starbuck93 with questions or help
- #requirements: megatools
- # a directory /home/username/megarc/
- # a megarc template as follows: (put your base email and the word TEST will be replaced by a number to distinguish accounts and put the same password close to CONFIRM as it doesn't matter that much.)
- #$ touch megarc/storageTest
- #[Login]
- #Username = myEmail+storageTEST@gmail.com
- #Password = p@ssw0rd
- #script begins:
- if [ $# -ne 1 ]; then
- echo "$0": usage: ./register.sh 20
- exit 1
- fi
- #fill in your email and password on the next command
- CONFIRM="$(megareg --scripted --register --email youremail+storage"$1"@gmail.com --name random --password p@ssw0rd)"
- cp ~/megarc/storageTest ~/megarc/storage"$1"
- sed -i 's/TEST/'"$1"'/g' ~/megarc/storage"$1"
- echo "Paste the link from the email here and hit ENTER:"
- read link
- link2=${link/mega.nz/mega.co.nz}
- link3=${CONFIRM/@LINK@/\'"$link2"\'}
- @eval $link3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement