Fix false return values for config (closes #8)

This commit is contained in:
rwxrob 2021-12-15 23:19:22 -05:00
parent 3d01d93246
commit b77c674962
No known key found for this signature in database
GPG Key ID: 1CCACEDD2F65578E
1 changed files with 4 additions and 1 deletions

5
cmd
View File

@ -416,12 +416,14 @@ _config_dir() {
[[ -n "$1" ]] && echo "$dir/$1" && return 0
printf "%s" "$dir"
[[ -t 1 ]] && echo
return 0
}
_config_path() {
local file=${1:-values}
printf "%s/%s" "$(_config_dir)" "$file"
[[ -t 1 ]] && echo
return 0
}
_config_set() {
@ -432,8 +434,9 @@ _config_set() {
}
_config_get() {
printf "${CONF[$1]}"
printf "%s" "${CONF[$1]}"
[[ -t 1 ]] && echo
return 0
}
_config_read() {