View Single Post
Old 02-02-2015, 11:30 AM   #14
bambuko
Connoisseur
bambuko began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
Quote:
Originally Posted by eschwartz View Post
You should not need pwd in order to tell it to look in the current directory?
I agree, but running it with original script resulted in:


However...
Quote:
Originally Posted by PeterT View Post
Surely it all depends if the path includes ".".

Wouldn't a far simpler solution be
Code:
echo "Starting up Calibre"
# original: calibre --with-library "$CALIBRE_LIBRARY_DIRECTORY"
# below modified to make it portable
./calibre --with-library "$CALIBRE_LIBRARY_DIRECTORY"
You are absolutely right. This is indeed far simpler solution and it runs fine.
I have updated my calibre-portable.sh
bambuko is offline   Reply With Quote