From c86431b6dfaf04b56adda6efea9f4fc2fa91c7e5 Mon Sep 17 00:00:00 2001 From: Esteban Carnevale Date: Fri, 7 Nov 2014 14:09:12 -0300 Subject: parabola-mirror-repos: Variable name to lowercase --- parabola-mirror-repos | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parabola-mirror-repos b/parabola-mirror-repos index 292fcbc..285b14e 100755 --- a/parabola-mirror-repos +++ b/parabola-mirror-repos @@ -312,20 +312,20 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then comm -13 "$remote_pool_files" "$local_pool_files" > "$pool_files_to_delete" # Calculate number of pool files to delete - NUMBER_TO_DELETE="$(wc -l $pool_files_to_delete | cut -d ' ' -f 1)" + number_to_delete="$(wc -l $pool_files_to_delete | cut -d ' ' -f 1)" # Fail if there are too many files to delete - if [[ "$NUMBER_TO_DELETE" -gt "$max_delete" ]] ; then - error " => ERROR: The number of pool package files to be deleted is ${NUMBER_TO_DELETE}, greater than the specified maximum which is ${max_delete}" + if [[ "$number_to_delete" -gt "$max_delete" ]] ; then + error " => ERROR: The number of pool package files to be deleted is ${number_to_delete}, greater than the specified maximum which is ${max_delete}" fi # Delete pool files - if [[ $NUMBER_TO_DELETE -gt 0 ]] ; then + if [[ $number_to_delete -gt 0 ]] ; then if [[ ${no_file_delete} == 1 ]] ; then - echo "=> Deleting ${NUMBER_TO_DELETE} old pool package files" + echo "=> Deleting ${number_to_delete} old pool package files" find $(cat "$pool_files_to_delete") -print -exec rm -f {} \; else - echo "=> Deletion of pool package files (${NUMBER_TO_DELETE}) is disabled. List of files:" + echo "=> Deletion of pool package files (${number_to_delete}) is disabled. List of files:" printf '%s\n' $(cat "$pool_files_to_delete") fi fi -- cgit v1.2.3