diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 14:09:12 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 14:09:12 -0300 |
commit | c86431b6dfaf04b56adda6efea9f4fc2fa91c7e5 (patch) | |
tree | fc2020f85fa21ebf486f51dec10410e28c89f28e /parabola-mirror-repos | |
parent | 1cf57ad2eb6982384e001741df7b359212427fa6 (diff) |
parabola-mirror-repos: Variable name to lowercase
Diffstat (limited to 'parabola-mirror-repos')
-rwxr-xr-x | parabola-mirror-repos | 12 |
1 files 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 |