diff options
author | Colin Guthrie <colin@mageia.org> | 2014-08-04 10:54:32 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-08-04 10:54:32 +0100 |
commit | d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d (patch) | |
tree | c492251fe559b37acbec1939f253d3efd7ccfd12 | |
parent | c5b0de9b8f4cce32cdfefc55dedafefaee60df9d (diff) | |
download | mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.gz mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.bz2 mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.xz mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.zip |
move: Add in a little bit more validation
-rw-r--r-- | functions | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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/" } |