save before push to local
This commit is contained in:
parent
69d63cb9ce
commit
3acfcf1d68
3 changed files with 12 additions and 6 deletions
|
@ -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.
|
|
@ -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"
|
||||
#value=$(read_ini "config.ini" "section" "key2")
|
||||
#echo "$value"
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue