Read a yaml file and create variables in bash
Bash script to read a Yaml file and create variables.
Copy the script/yaml.sh
file and import on your script: source yaml.sh
Then two functions are viable:
Look at test
folder to see more.
You can test if your yaml file will be readed correctly based on test folder.
This project was started based on @pkuczynski gist. Found it here