cloud-rclone.sh 372 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. echo -e Cloud service: \\n \
  4. M,m - MEGA \\n \
  5. O,o - OneDrive \\n \
  6. G,g - Google Drive \\n
  7. echo only MEGA works:
  8. read service
  9. read -rp "username: " user
  10. read -srp "password: " pass
  11. case "$service" in
  12. M|m) rclone --mega-user "$user" --mega-pass "$pass" ls /
  13. ;;
  14. *) echo Bad usage ;;
  15. esac