summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xparabola-mirror-repos10
1 files changed, 5 insertions, 5 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos
index a98fbab..399e2d6 100755
--- a/parabola-mirror-repos
+++ b/parabola-mirror-repos
@@ -25,10 +25,10 @@ log_tmp="$(mktemp -p /var/tmp)"
: ${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
: ${max_delete:=10000} # maximum amount of files to delete in the local directory
-[[ ! ${BW_LIMIT} ]] && \
- : ${BW_LIMIT:=1300} # KB/s
+[[ ! ${bw_limit} ]] && \
+ : ${bw_limit:=1300} # KB/s
: ${log_file:=${script_filename}.log}
-: ${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}}
+: ${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}
@@ -157,8 +157,8 @@ tmp_exists=0
local_useful=0
date_exact=""
first_run=0
-if [[ ${BW_LIMIT} ]] ; then
- options+=" --bwlimit=${BW_LIMIT}"
+if [[ ${bw_limit} ]] ; then
+ options+=" --bwlimit=${bw_limit}"
fi
path_list_array=(${path_list})
repos_array=(${repos})