From fff887730adabe30c00996a2b50f61c9ad6074b4 Mon Sep 17 00:00:00 2001 From: Foxly IT <81775975+foxly-it@users.noreply.github.com> Date: Wed, 13 Oct 2021 06:56:24 +0200 Subject: [PATCH] Update backup.sh --- backup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backup.sh b/backup.sh index fc361e4..0010ba1 100644 --- a/backup.sh +++ b/backup.sh @@ -25,6 +25,8 @@ echo "" # #################### # Helper functions # #################### +backup_VER="v1.1" + displaytime() { local T=$1 @@ -40,6 +42,7 @@ displaytime() { printf '%d seconds\n' $S } + #################### # Colors # #################### @@ -76,6 +79,16 @@ if ! command_exists lsb_release; then apt-get update && apt-get install -qq lsb-release > /dev/null 2>&1 fi +echo -ne "\ec" + +WELCOME_TXT="Welcome to BBNC - BorgBackup Nextcloud ${backup_VER}" +WELCOME_FEN=${#WELCOME_TXT} + +echo "" +echo " $(str_repeat "$WELCOME_FEN" "#")" +echo " $WELCOME_TXT" +echo " $(str_repeat "$WELCOME_FEN" "#")" +echo "" ####################### # TODO / Variables #