diff --git a/lgsm/functions/command_backup.sh b/lgsm/functions/command_backup.sh index 5dd066109..9b3618ce9 100644 --- a/lgsm/functions/command_backup.sh +++ b/lgsm/functions/command_backup.sh @@ -188,7 +188,7 @@ fn_backup_relpath() { declare -a bdirtoks=($(readlink -f "${backupdir}" | sed "s/\// /g")) # CHECK THAT the array is populated correctly. Sanity check here -CedarLUG - for ((base=0; $base<${#rdirtoks[@]}; base++)) ; + for ((base=0; $base<${#rdirtoks[@]}; base++)) do [[ "${rdirtoks[$base]}" != "${bdirtoks[$base]}" ]] && break done