From 111dff3149ba314ac91e372d7a94a9c715e59087 Mon Sep 17 00:00:00 2001 From: K-Dimentional Tree Date: Sat, 24 Aug 2024 17:38:11 +0300 Subject: [PATCH] Added backup script --- scripts/update_init_block.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_init_block.sh b/scripts/update_init_block.sh index ac50978..be15d85 100755 --- a/scripts/update_init_block.sh +++ b/scripts/update_init_block.sh @@ -11,7 +11,6 @@ function usage() { exit } - while [[ $# -gt 0 ]]; do case $1 in -h|--help) @@ -52,6 +51,8 @@ FILEHASH=$(echo "$RES" | jq '.file_hash') ROOTHASH=$(echo "$RES" | jq '.root_hash') FILENAME=$1 + +cp $FILENAME $FILENAME.bk || echo "Failed to backup the config" python3 <