summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xparabola-mirror-repos12
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