From c9adb535b20db05ab20445cc468a3ab013f3cdff Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 14 Sep 2020 16:25:05 -0600 Subject: [PATCH] fix incorrect form of its --- ab-openldap/backup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ab-openldap/backup.sh b/ab-openldap/backup.sh index 8ce62cd..f2233e6 100755 --- a/ab-openldap/backup.sh +++ b/ab-openldap/backup.sh @@ -27,7 +27,7 @@ scriptPath="$( CDPATH='' cd -- "$( dirname -- "$0" )" && pwd -P )" scriptName="$( basename "$0" )" # logfile default: same location and name as this script, with '.log' extension logfile="$scriptPath/${scriptName%.*}.log" -# encryption parameters file default: same location and name as this script, +# encryption parameters file default: same location and name as this script, # with '.params' extension encParams="$scriptPath/${scriptName%.*}.params" # backup mode by default @@ -63,11 +63,11 @@ consoleError () { exit "$1" } -decryptionNote () { +decryptionNote () { printf "\n" textblock "${bold}${magenta}Decrypting your backup archive:${norm}" printf "\n" - + textblock 'To decrypt and extract your backup file, you need the following information:' textblock '1. The password used to encrypt the file' textblock '2. The encryption cipher used (default: AES-256-CBC)' @@ -132,7 +132,7 @@ scriptHelp () { textblock "${bold}${magenta}Usage: ${scriptName} [parameters]${norm}" printf "\n" textblock "${cyan}Parameters ${yellow}(default value):${norm}" - textblock "There are NO mandatory parameters. By default the script will run in 'backup' mode and save an encrypted backup archive to the current directory. If a parameter is not supplied, it's default value will be used. In the case of a switch parameter, it will remain deactivated if not specified." + textblock "There are NO mandatory parameters. By default the script will run in 'backup' mode and save an encrypted backup archive to the current directory. If a parameter is not supplied, its default value will be used. In the case of a switch parameter, it will remain deactivated if not specified." printf "\n" textblock "${bold}*** Common parameters ***${norm}" printf "\n" @@ -401,7 +401,7 @@ else ;; esac logInfo "Imported: '$encParams'" - + # verify import logInfo 'task' 'Verify encryption password' if [ -z "$password" ]; then @@ -435,7 +435,7 @@ if [ $extract = 'true' ]; then # extract backupFile to outputLocation logInfo "Extracting backup file ($backupFile)" - + # create extraction target directory if [ ! -d "${outputLocation%/}/restore" ]; then # create subdirectory for restored files @@ -537,7 +537,7 @@ elif [ $extract = 'false' ]; then else logInfo 'done' fi - i=$((i+1)) + i=$((i+1)) done # compress and encrypt exported ldif files