cloner.sh 596 B

12345678910111213141516171819
  1. #!/bin/bash
  2. cat << "EOF"
  3. ____ _
  4. / ___| | ___ _ __ ___ _ __
  5. | | | |/ _ \| '_ \ / _ \ '__|
  6. | |___| | (_) | | | | __/ |
  7. \____|_|\___/|_| |_|\___|_|
  8. EOF
  9. echo""
  10. echo -e ${green}"Enter Website URL To Clone. Example: https://www.starbucks.com"${clear}
  11. echo ""
  12. read URL
  13. echo ""
  14. echo -e ${yellow}"Cloning $URL"${clear}
  15. /usr/bin/chromium-browser --no-sandbox 2>/dev/null
  16. runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser /home/pi/index.html
  17. echo ""
  18. sleep 2
  19. echo -e ${yellow}"$URL Cloned Successfully"${clear}