From c90c3e1af0e4a0d69c88497c74e5bfa22001f81f Mon Sep 17 00:00:00 2001 From: rwxrob Date: Mon, 23 Aug 2021 23:13:45 -0400 Subject: [PATCH] Allow `_read_config` to take a path as argument --- cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd b/cmd index 719f350..f51e037 100755 --- a/cmd +++ b/cmd @@ -269,7 +269,7 @@ _set_config() { } _read_config() { - local path="$XDG_CONFIG_HOME/$EXE/values" + local path=${1:-"$XDG_CONFIG_HOME/$EXE/values"} [[ -r "$path" ]] || return 0 while IFS= read -r line; do [[ $line =~ ^([^=]+)=(.+)$ ]] || continue