aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/vars.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-08-11 01:32:32 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-08-11 01:32:32 +0300
commit383c3ab89dca3a25dece6bd0d8aa0e71eec178e4 (patch)
treee4add9ed4371b8d6b59d74281381331dd84beb3e /src/vars.sh
parent+x bin/*.sh (diff)
downloadconfig-links-383c3ab89dca3a25dece6bd0d8aa0e71eec178e4.tar.gz
config-links-383c3ab89dca3a25dece6bd0d8aa0e71eec178e4.zip
shellcheck fixes
Diffstat (limited to '')
-rw-r--r--src/vars.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vars.sh b/src/vars.sh
index 2bac2ff..f989b0a 100644
--- a/src/vars.sh
+++ b/src/vars.sh
@@ -7,6 +7,8 @@
declare -A cached_paths
+readonly root_var_name='CONFIG_LINKS_ROOT'
+
resolve_variable() {
if [ "$#" -ne 1 ]; then
echo "usage: ${FUNCNAME[0]} VAR_NAME" >&2
@@ -42,7 +44,6 @@ cache_variable() {
done
}
-readonly root_var_name='CONFIG_LINKS_ROOT'
readonly var_name_regex='%\([_[:alpha:]][_[:alnum:]]*\)%'
extract_variable_name() {