From d698c49667d4f1e5c7f4ad5b5d0881021a92ef8e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 29 Dec 2014 18:10:41 -0500 Subject: conf.sh.3: proofread --- src/lib/conf.sh.3.ronn | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/lib/conf.sh.3.ronn b/src/lib/conf.sh.3.ronn index bad271d..1b26a06 100644 --- a/src/lib/conf.sh.3.ronn +++ b/src/lib/conf.sh.3.ronn @@ -10,9 +10,6 @@ conf.sh(3) -- easy loading of configuration files `conf.sh` is a Bash(1) library to easily load various configuration files related to Arch Linux/Parabola(7) and libretools(7). -I recommend reading the source yourself--it is mostly -self-explanatory, and is shorter than this document. - ### VARIABLES When loading configuration files in a program run with `sudo`(8), it @@ -56,23 +53,24 @@ The routines you will likely actually use are: variables. * `check_vars` ...: Checks to see if all of are defined. If any of them - aren't, it prints a message to configure them in the - configuration files for , and returns with a non-zero + aren't, it prints a message telling the user to configure them in + the configuration files for , and returns with a non-zero status. * `get_var` : - If is set in the configuration for , print it's + If is set in the configuration for , print its value, considering environmental variables. If it is not set, return . This does NOT work for array variables. * `set_var` : Set the variable equal to in the configuration file - for of highest precedence that already exists, and is + for of highest precedence that already exists and is writable. If no files fit this description, the routine does nothing and returns a non-zero exit status. This does NOT work for array variables. There are two more routines the above routines use internally that are -used internally by . You are unlikely to use them directly, but they -might be useful for debugging, or at least describing behavior. +used internally by by the above routines. You are unlikely to use +them directly, but they might be useful for debugging, or at least +describing behavior. * `list_files` : Lists (newline-separated) the configuration files that must be -- cgit v1.2.3-54-g00ecf