save before push to local

This commit is contained in:
kake26 2024-03-29 15:01:12 -05:00
parent 69d63cb9ce
commit 3acfcf1d68
3 changed files with 12 additions and 6 deletions

View file

@ -2,6 +2,10 @@
A framework for making bash scripts with some useful features 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? # 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. 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.

View file

@ -47,11 +47,11 @@ write_ini() {
} }
# Usage # Usage
write_ini "config.ini" "section" "key" "newvalue" #write_ini "config.ini" "section" "key" "newvalue"
write_ini "config.ini" "newsection" "key" "newvalue" #write_ini "config.ini" "newsection" "key" "newvalue"
# Usage # Usage
value=$(read_ini "config.ini" "section" "key") #value=$(read_ini "config.ini" "section" "key")
echo "$value" #echo "$value"
value=$(read_ini "config.ini" "section" "key2") #value=$(read_ini "config.ini" "section" "key2")
echo "$value" #echo "$value"

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# this is the main script template
set -eo pipefail set -eo pipefail
if [[ -n "${BASHD_DEBUG}" ]]; then # a inevitability that this will be used if [[ -n "${BASHD_DEBUG}" ]]; then # a inevitability that this will be used