Added shell parameter expansion to remove every trailing slashes in the parameters loaded from asd.conf, fixing issue #42. This includes all entries of the WHATTOSYNC array, as well as the VOLATILE variable.
Updated asd.conf template and man page accordingly.
The shell parameter expansion uses an extended pattern matching which requires the shell option extglob to be set. I made sure this doesn't (and won't in the future) interfere with the rest of the script, but maybe it could be set for entirety of the script.
Added shell parameter expansion to remove every trailing slashes in the parameters loaded from asd.conf, fixing issue #42. This includes all entries of the WHATTOSYNC array, as well as the VOLATILE variable.
Updated asd.conf template and man page accordingly.
The shell parameter expansion uses an extended pattern matching which requires the shell option extglob to be set. I made sure this doesn't (and won't in the future) interfere with the rest of the script, but maybe it could be set for entirety of the script.