From 8276ca491cb9f3ea2aa04c656825a51e187926dc Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Sun, 29 Mar 2026 00:38:35 +0200 Subject: [PATCH] Fixed a bug in step 4 --- installer/VERSION | 2 +- installer/installdebmirrorman.sh | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/installer/VERSION b/installer/VERSION index 49d5957..17e51c3 100644 --- a/installer/VERSION +++ b/installer/VERSION @@ -1 +1 @@ -0.1 +0.1.1 diff --git a/installer/installdebmirrorman.sh b/installer/installdebmirrorman.sh index 47e9e2b..0b7e8f0 100755 --- a/installer/installdebmirrorman.sh +++ b/installer/installdebmirrorman.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="0.1" +VERSION="0.1.1" function doError { if [[ -z ${1} ]]; then @@ -154,7 +154,6 @@ if [[ "${laststep}" -lt 4 ]]; then method="http" fi echo -n "If this repo requires a GPG key then paste the URL to download it, or press just ENTER if there is no GPG key. " - echo -n "Do you want to mirror the Source data and files (Y/n) " read -r keyringurl echo if [[ -z "${keyringurl}" ]]; then @@ -165,6 +164,16 @@ if [[ "${laststep}" -lt 4 ]]; then curl -sSLo "/etc/debmirrorman/${localrepo}.gpg" "${keyringurl}" || doError "Failed to down ${keyringurl}..." keyring=true fi + echo -n "Do you want to mirror the Source data and files (y/N) " + read -r -n 1 sources + echo + if [[ -z "${sources}" || "${sources,,}" != "y" ]]; then + echo "Not including Source data..." + sources=false + else + echo "Including Source data..." + sources=true + fi echo -n "Do you want to mirror the Debian Install data (normally only needed when mirroring the main Debian repos at deb.debian.org) (y/N) " read -r -n 1 debinst echo