From 72a72725624fbc8ab1c2cab5e39b3bc9bc031a32 Mon Sep 17 00:00:00 2001 From: Esteban Carnevale Date: Fri, 7 Nov 2014 13:49:07 -0300 Subject: parabola-mirror-repos: Variable name to lowercase --- parabola-mirror-repos | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parabola-mirror-repos b/parabola-mirror-repos index fb9e94a..ae0c41f 100755 --- a/parabola-mirror-repos +++ b/parabola-mirror-repos @@ -24,11 +24,11 @@ log_tmp="$(mktemp -p /var/tmp)" : ${local_dir:=${base_dir}/${project}} # symlink to the last snapshot : ${repos:=core extra community multilib libre kernels libre-multilib libre-multilib-testing libre-testing nonprism nonprism-testing java cross pcr} # mips64el is also excluded in some rsync invocations in this script -: ${MAXDELETE:=10000} # maximum amount of files to delete in the local directory +: ${max_delete:=10000} # maximum amount of files to delete in the local directory [[ ! ${BW_LIMIT} ]] && \ : ${BW_LIMIT:=1300} # KB/s : ${log_file:=${script_filename}.log} -: ${OPTIONS:=-rltvH --no-p --no-g --max-delete=$MAXDELETE --exclude=.* --bwlimit=${BW_LIMIT} --no-motd --chmod=Dug=srwx,Fug=rw --log-file=${log_tmp}} +: ${OPTIONS:=-rltvH --no-p --no-g --max-delete=$max_delete --exclude=.* --bwlimit=${BW_LIMIT} --no-motd --chmod=Dug=srwx,Fug=rw --log-file=${log_tmp}} : ${oldest_version:=100} # delete versions older than this version : ${link_dest[0]:=${base_dir}/archlinux} #: ${link_dest[1]:=${base_dir}/parabola.secondary_mirror.tmp} @@ -309,8 +309,8 @@ if [[ ${db_and_symlinks_update} == 1 ]] ; then NUMBER_TO_DELETE="$(wc -l $POOL_FILES_TO_DELETE | cut -d ' ' -f 1)" - if [[ "$NUMBER_TO_DELETE" -gt "$MAXDELETE" ]] ; then - error " => ERROR: The number of pool package files to be deleted is ${NUMBER_TO_DELETE}, greater than the specified maximum which is ${MAXDELETE}" + 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 if [[ $NUMBER_TO_DELETE -gt 0 ]] ; then -- cgit v1.2.3