Page 1 of 1

Small bug in script serviio.sh

PostPosted: Wed Dec 30, 2015 8:53 am
by jamo
There is a tiny bug in the script "serviio.sh". Installed on MacOSX, the script is located in /Library/Application Support/Serviio/bin. The first line in the script is:

DIRNAME=`dirname $0`

On MacOSX this expands to

DIRNAME=`dirname /Library/Application Support/Serviio/bin`

As there is a space in the path, this results in the error message: usage: dirname path in the log file.

It is better to use:

DIRNAME=`dirname "$0"`

Re: Small bug in script serviio.sh

PostPosted: Fri Jan 01, 2016 2:53 pm
by zip
thanks, will update