diff --git a/README.md b/README.md index eae8533..ebcdcc6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A framework for making bash scripts with some useful features +# The config scripts + +One uses JQ the other awk,grep and sed. They basically achieve the same thing though to allow you to have a config file for a bash script. Good for keeping things like passwords and such out of the script itself. JQ is a external requirement that might need to be installed as to the where the others are likley already there. JQ runs on basically any platform, so its not a big issue. Even on my router so there is that. + # Where did the name come from? Well, one day I was watching a youtube video about a new type of scam that was discovered by the youtuber Pleasent Green. Which dealt with becoming a reseller / middle man for a fictiious herb called lactozora. I basically just stole the name. \ No newline at end of file diff --git a/config_ini.bash b/config_ini.bash index da6658c..534ba35 100755 --- a/config_ini.bash +++ b/config_ini.bash @@ -47,11 +47,11 @@ write_ini() { } # Usage -write_ini "config.ini" "section" "key" "newvalue" -write_ini "config.ini" "newsection" "key" "newvalue" +#write_ini "config.ini" "section" "key" "newvalue" +#write_ini "config.ini" "newsection" "key" "newvalue" # Usage -value=$(read_ini "config.ini" "section" "key") -echo "$value" +#value=$(read_ini "config.ini" "section" "key") +#echo "$value" -value=$(read_ini "config.ini" "section" "key2") -echo "$value" \ No newline at end of file +#value=$(read_ini "config.ini" "section" "key2") +#echo "$value" \ No newline at end of file diff --git a/script.bash b/script.bash index aab0975..50f60c2 100644 --- a/script.bash +++ b/script.bash @@ -1,5 +1,7 @@ #!/bin/bash +# this is the main script template + set -eo pipefail if [[ -n "${BASHD_DEBUG}" ]]; then # a inevitability that this will be used