Fixing some data that was left in

This commit is contained in:
kake26 2024-01-26 17:39:04 -06:00
parent 8ab998e252
commit 71ee8a4ba4
2 changed files with 21 additions and 1 deletions

20
commando.bash Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
# commando.bash
set -eo pipefail # you cann add u into -eo, but it drives me nuts so I won't
if [[ -n "${BASHD_DEBUG}" ]]; then # aievitability that this will be used
set -x
fi
trap cleanup EXIT # A little more robust cleanup
cleanup() {
# We can clean up any temp files or what nots, but for now a place holder
true
}
source ./config.bash
token=$(read_json "$JSON_FILE" "ntfy" "token")

View file

@ -31,7 +31,7 @@ write_json() {
create_json() {
local JSON_FILE="$1"
echo '{"bashini": "new"}' | jq '.' > "$JSON_FILE" # well we need something in there
write_json "$JSON_FILE" "restic" "password" "backupsarefun" # for the openwrt backup script here for testing
}
check_json() {