From e5d19aa871d8472189d85f87181bd40472cd7487 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 20 May 2019 17:01:01 -0600 Subject: [PATCH] func: backupFail --- f2b-config.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/f2b-config.sh b/f2b-config.sh index d020ebf..d61b422 100644 --- a/f2b-config.sh +++ b/f2b-config.sh @@ -30,6 +30,19 @@ function backupFiles { return 0 } +function backupFail { + echo + echo -e "${err}There was a problem backing up your current configuration." + echo -e "This suggests some kind of permissions error. Please remedy this" \ + "and rerun" + echo -e "this script." + echo + echo -e "${note}Error backing up file: ${lit}$1" + echo + echo -e "${err}Exiting.${normal}" + echo + exit 100 +} ### end of functions @@ -76,3 +89,4 @@ echo -e "${note}------------------------------------------------------------" \ echo +### copy template files