From d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 4 Aug 2014 10:54:32 +0100 Subject: move: Add in a little bit more validation --- functions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions b/functions index 7f5f63c..97ffbec 100644 --- a/functions +++ b/functions @@ -93,6 +93,11 @@ function update_distro_hdlist() function update_common_MD5SUM() { + if [ "$1" = "--nocheck" ]; then + shift + else + valid_release "$1" || return 1 + fi local release="$1" for arch in $arches; do pushd "$distribdir/$release/$arch/media/media_info" @@ -103,6 +108,11 @@ function update_common_MD5SUM() function mirror_repository() { + if [ "$1" = "--nocheck" ]; then + shift + else + valid_release "$1" || return 1 + fi local release="$1" /usr/bin/rsync $mirror_rsync_options "$distribdir/$release/" "$finaldistribdir/$release/" } -- cgit v1.2.1