You script needs to be
#!/bin/bash
export CALIBRE_INSTALL_DIR="/opt"&& python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read();main()"
Note the absence of sudo in the script itself. Then you run the script itself with sudo
|