Compare commits
No commits in common. "018cb9910c7cb93225f1ee17b79f08603bb4d693" and "b821d4dfa7d8e61dd9d1eb185fe55b6738ca7ee8" have entirely different histories.
018cb9910c
...
b821d4dfa7
@ -1,5 +0,0 @@
|
||||
# BASH Libs
|
||||
This is just a simple bash project of bash code that can be loaded in like you would load in a module in python or ruby
|
||||
|
||||
## How to include them?
|
||||
All you have to do to begin using the libs is source the imports lib (/path/to/import.sh) and it will handle the logic of sourcing the others relative to itself without the user needing to provide anything.
|
@ -1,5 +1,5 @@
|
||||
# A variable to contain the configs provided manually or via function calls
|
||||
declare -g -A CONFIG
|
||||
declare -A CONFIG
|
||||
|
||||
##########################
|
||||
# Function: load_section
|
||||
@ -71,7 +71,7 @@ function load_config_ini () {
|
||||
local -n CONFIG_VAR=${2}
|
||||
|
||||
else
|
||||
local -n CONFIG_VAR=CONFIG
|
||||
local -n CONFIG_VAR="CONFIG"
|
||||
fi
|
||||
|
||||
if ! declare -p ${!CONFIG_VAR} 2>/dev/null | grep -q 'declare -A'; then
|
||||
|
Loading…
Reference in New Issue
Block a user