pcucontrol@master
[build.git] / fedora-mirror.sh
index e78519f..4ef4239 100755 (executable)
@@ -16,8 +16,8 @@ root=/mirror/
 us_fedora_url=rsync://mirrors.kernel.org/fedora
 eu_fedora_url=rsync://mirror1.hs-esslingen.de/fedora/linux
 
-default_distroname="f29"
-all_distronames="f27 f29"
+default_distroname="f31"
+all_distronames="f29 f31"
 
 global_arch="x86_64"
 
@@ -61,6 +61,7 @@ function mirror_distro_arch () {
         localpath=fedora
     else
         paths="$paths updates/$distroindex/Everything/$arch/ updates/$distroindex/Modular/$arch/"
+        localpath=fedora
     fi
 
     for repopath in $paths; do
@@ -68,7 +69,7 @@ function mirror_distro_arch () {
         [ -z "$dry_run" ] && mkdir -p ${root}/${localpath}/${repopath}
         command="rsync $options ${rsyncurl}/${repopath} ${root}/${localpath}/${repopath}"
         echo $command
-       $command
+        $command
     done
 
     echo "<<<<<<<<<<<<<<<<<<<< $distroname $arch"