Fix `_write_config` to take argument as well

This commit is contained in:
rwxrob 2021-08-24 23:49:04 -04:00
parent c90c3e1af0
commit c426351e4e
No known key found for this signature in database
GPG Key ID: 1CCACEDD2F65578E
1 changed files with 1 additions and 1 deletions

2
cmd
View File

@ -278,7 +278,7 @@ _read_config() {
} }
_write_config() { _write_config() {
local path="$XDG_CONFIG_HOME/$EXE/values" local path=${1:-"$XDG_CONFIG_HOME/$EXE/values"}
mkdir -p "${path%/values}" mkdir -p "${path%/values}"
_dump_config > "$path" _dump_config > "$path"
} }