export_var.sh
Export arbitrary variables
Description
Simply export list of arbitrary variables defined in module sections.
Parameters in .envrc.ini
are:
Name | Description |
---|---|
VAR_NAME |
Name and value of the variable to export |
Parameters
VAR_NAME
Name and value of the variable to export.
.envrc.ini
example
Corresponding entry in .envrc.ini.template
are:
# export module
# ------------------------------------------------------------------------------
# Export arbitrary variables
[export_var]
# Specify variable name and value to export
VAR_NAME="value"
export_var()
Export export_var variable
Export variables
Output
- Log information
Returns
- 1 if required variables are not set or if database can not be unlocked
- 0 if everything is right and database can be unlocked
deactivate_export_var()
Unset exported variables for export_var module
Unset export_var_*
variable previously exported.
Globals
export_var_DB
export_var_KEYFILE
export_var_NAME
Last update:
January 7, 2022