A seemingly undocumented feature of autorestic is, that config files are loaded from $XDG_CONFIG_HOME/.config/autorestic by default. The code suggests, that the default value for $XDG_CONFIG_HOME is supposed to be ~/.config/.
Unfortunately, the code had a minor bug that lead to the default being ~.
This PR fixes this bug, adds a few tests and mentions this feature in the documentation.
This is my first Go code, so please give feedback where needed :)
A seemingly undocumented feature of autorestic is, that config files are loaded from
$XDG_CONFIG_HOME/.config/autorestic
by default. The code suggests, that the default value for$XDG_CONFIG_HOME
is supposed to be~/.config/
.Unfortunately, the code had a minor bug that lead to the default being
~
.This PR fixes this bug, adds a few tests and mentions this feature in the documentation.
This is my first Go code, so please give feedback where needed :)