Compare commits
2 Commits
018cb9910c
...
master
Author | SHA1 | Date | |
---|---|---|---|
308063a3bf | |||
d524d0aabf |
14
README.md
14
README.md
@@ -3,3 +3,17 @@ This is just a simple bash project of bash code that can be loaded in like you w
|
|||||||
|
|
||||||
## How to include them?
|
## 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.
|
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.
|
||||||
|
|
||||||
|
Example Script:
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. /path/to/import.sh
|
||||||
|
import config
|
||||||
|
|
||||||
|
load_config_ini /path/to/config.ini
|
||||||
|
|
||||||
|
for KEY in ${!CONFIG[@]}; do
|
||||||
|
echo "$KEY = ${CONFIG[$KEY]}"
|
||||||
|
done
|
||||||
|
```
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# [$FUNCNAME]="string of varnames"
|
# [$FUNCNAME]="string of varnames"
|
||||||
#
|
#
|
||||||
# It will keep track of vars seperately of each function that log will be used with
|
# It will keep track of vars seperately of each function that log will be used with
|
||||||
declare -A LOG_WATCH_VARS
|
declare -g -A LOG_WATCH_VARS
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
|
Reference in New Issue
Block a user