diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:49:07 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:49:07 -0300 |
commit | 72a72725624fbc8ab1c2cab5e39b3bc9bc031a32 (patch) | |
tree | fb7f80ad4dd184702f5dbde3d5bb50986f3c6d21 /parabola-mirror-repos | |
parent | 60764ae398c1c0be2bbfca4c9cf8a38920fb6750 (diff) |
parabola-mirror-repos: Variable name to lowercase
Diffstat (limited to 'parabola-mirror-repos')
-rwxr-xr-x | parabola-mirror-repos | 8 |
1 files 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 |