View Single Post
Old 05-12-2017, 06:44 AM   #20
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,806
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
A suggestion for the shell script so it does not depend on the current directory is to add this to the top of the script:
Code:
cd "$(dirname "${BASH_SOURCE[0]}")"
Also /bin/sh needs to be replaced with /bin/bash.

Last edited by geek1011; 05-12-2017 at 06:48 AM.
geek1011 is offline   Reply With Quote