aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions b/functions
index 36d8c79..96fb557 100644
--- a/functions
+++ b/functions
@@ -223,6 +223,11 @@ function update_common_MD5SUM()
function mirror_repository()
{
local distrorelease="$1"
+ if ! inlist "$distrorelease" "$distroreleases"
+ then
+ echo "Incorrect distrorelease $distrorelease" >&2
+ exit 1
+ fi
get_distro_lock "$distrorelease"
update_common_MD5SUM "$distrorelease"
$dryrun /usr/bin/rsync $mirror_rsync_options "$distribdir/$distrorelease/" "$finaldistribdir/$distrorelease/"