config-getvar: fix the help message (incorrect list of default files)
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
15825d0a4b
commit
f929f20486
@ -9,6 +9,14 @@ Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
|
|||||||
* po/it/spec-create - Davide Madrisan:
|
* po/it/spec-create - Davide Madrisan:
|
||||||
Updated.
|
Updated.
|
||||||
|
|
||||||
|
+ bugfix
|
||||||
|
* plugins/config-getvar, lib/libcfg.lib - Davide Madrisan:
|
||||||
|
Fix the help message (incorrect list of default files).
|
||||||
|
|
||||||
|
+ update
|
||||||
|
* po/it/config-getvar - Davide Madrisan:
|
||||||
|
Updated.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.14.0
|
Changes in version 1.14.0
|
||||||
|
@ -21,6 +21,9 @@ default_cfg=(\
|
|||||||
`ls /etc/@package@.conf /etc/@package@.d/*.conf \
|
`ls /etc/@package@.conf /etc/@package@.d/*.conf \
|
||||||
~/.@package@ ~/.@package@.d/*.conf 2>/dev/null`)
|
~/.@package@ ~/.@package@.d/*.conf 2>/dev/null`)
|
||||||
|
|
||||||
|
default_cfg_strlist="/etc/@package@.conf /etc/@package@.d/*.conf"
|
||||||
|
default_cfg_user_strlist="~/.@package@ ~/.@package@.d/*.conf"
|
||||||
|
|
||||||
# check if the user configurations file for autospec is present
|
# check if the user configurations file for autospec is present
|
||||||
function config.check4user() {
|
function config.check4user() {
|
||||||
local user_data=$(getent passwd 2>/dev/null | grep "x:$(id -u):")
|
local user_data=$(getent passwd 2>/dev/null | grep "x:$(id -u):")
|
||||||
|
@ -56,7 +56,8 @@ function usage() {
|
|||||||
"$"where the above options mean"":
|
"$"where the above options mean"":
|
||||||
--eval "$"Print the value of the configuration variable <var>""
|
--eval "$"Print the value of the configuration variable <var>""
|
||||||
-C, --config "$"Use an alternate configuration file"" <conf_file>""
|
-C, --config "$"Use an alternate configuration file"" <conf_file>""
|
||||||
"$"Default files:"" ${default_cfg[0]}, ${default_cfg[1]}""
|
"$"Default files:"" $default_cfg_strlist""
|
||||||
|
"$"Default user files:"" $default_cfg_user_strlist""
|
||||||
|
|
||||||
"$"Operation modes"":
|
"$"Operation modes"":
|
||||||
-h, --help "$"Print this help, then exit""
|
-h, --help "$"Print this help, then exit""
|
||||||
|
@ -51,6 +51,9 @@ msgstr "Utilizza un file di configurazione alternativo"
|
|||||||
msgid "Default files:"
|
msgid "Default files:"
|
||||||
msgstr "File di default:"
|
msgstr "File di default:"
|
||||||
|
|
||||||
|
msgid "Default user files:"
|
||||||
|
msgstr "File di default utente:"
|
||||||
|
|
||||||
msgid "Operation modes"
|
msgid "Operation modes"
|
||||||
msgstr "Modalità operative"
|
msgstr "Modalità operative"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user