diff --git a/cleacheck_AutoBackup.sh b/cleacheck_AutoBackup.sh index 7b2952a..9b60331 100644 --- a/cleacheck_AutoBackup.sh +++ b/cleacheck_AutoBackup.sh @@ -47,7 +47,7 @@ do echo " " echo "Checking repo: ${repos_name[i]}" - if [ -d "$DIR" ]; then + if [ -d "${repos_directory[i]}" ]; then # Take action if ${repos_directory[i]} exists ### cd ${repos_directory[i]} #jump into repo else