I tried :-
Quote:
#!/bin/bash
export CALIBRE_INSTALL_DIR="/opt"&& sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read();main()"
|
but again it failed asking for the folder.
But as you say the sudo is stripping the export but I can't sudo export.
Will look at setting it globally.