In line 28 the script issues a echo -n > "$conf". The parameter -n to echo is not posix conforming and as a result -n ends up in the config file which in turn throws an error later on when the config is sourced.
broken config is created
a clean config
replace with printf? truncate -s 0?
(In reply to Sven E. from comment #0)
> replace with printf? truncate -s 0?
: > "$conf"
(In reply to Alexander Tsoy from comment #1)
> (In reply to Sven E. from comment #0)
> > replace with printf? truncate -s 0?
> : > "$conf"
> or just
Okay, wasn't sure if that's POSIX, thanks for the feedback.
should be fixed by: