Change no values file to non-fatal (return 0)
This commit is contained in:
parent
82af5adc4c
commit
5954cd7f97
2
cmd
2
cmd
|
@ -270,7 +270,7 @@ _set_config() {
|
||||||
|
|
||||||
_read_config() {
|
_read_config() {
|
||||||
local path="$XDG_CONFIG_HOME/$EXE/values"
|
local path="$XDG_CONFIG_HOME/$EXE/values"
|
||||||
[[ -r "$path" ]] || return 1
|
[[ -r "$path" ]] || return 0
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[[ $line =~ ^([^=]+)=(.+)$ ]] || continue
|
[[ $line =~ ^([^=]+)=(.+)$ ]] || continue
|
||||||
CONFIG["${BASH_REMATCH[1]}"]="${BASH_REMATCH[2]}"
|
CONFIG["${BASH_REMATCH[1]}"]="${BASH_REMATCH[2]}"
|
||||||
|
|
Loading…
Reference in New Issue