Closed bmurray7 closed 10 years ago
This is the wrong way to do it imho. try:
installation_dir=`dirname $0` ; cd "$installation_dir"
also there is never a reason to do grab the output of pwd, cd always sets $PWD by POSIX standard.
To handle spaces in the path to the script the argument to dirname must be quoted. In my testing backquotes act as quotes in that they prevent breaking by whitespace and need not be in quotes themselves.
installation_dir=`dirname "$0"`; cd "$installation_dir"
I've added cd66a3b6e7fa9c65a55393084331ec6ffd01470a to fix this. Thanks for your pull request, and I'm sorry it took so long.
BUGFIX: Linux update script now works when called from outside of freenet install directory. Previously, the update files would be written in the directory the script was called from.