From 3f4eb7e9380a121c854f46fff54a2f720197fc8c Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Sun, 29 Mar 2026 01:43:45 +0200 Subject: [PATCH] Neatened up Installer script step for adding first repo --- installer/VERSION | 2 +- installer/installdebmirrorman.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/VERSION b/installer/VERSION index d917d3e..b1e80bb 100644 --- a/installer/VERSION +++ b/installer/VERSION @@ -1 +1 @@ -0.1.2 +0.1.3 diff --git a/installer/installdebmirrorman.sh b/installer/installdebmirrorman.sh index 2b5984c..67b7cea 100755 --- a/installer/installdebmirrorman.sh +++ b/installer/installdebmirrorman.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="0.1.2" +VERSION="0.1.3" function doError { if [[ -z ${1} ]]; then @@ -135,11 +135,11 @@ if [[ "${laststep}" -lt 40 ]]; then localrepo="${remoterepo}" fi [[ "${localrepo}" =~ ^[a-z0-9]+([a-z0-9-]*[a-z0-9])?$ ]] || doError "Invalid repo name...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)..." - echo -en "What is the name of the section(s) on ${remotefqdn}/${remoterepo}\nthat you want to mirror? (Use a comma , as a delimeter if you want to use more than one - no spaces) " + echo -en "What is the name of the section(s) on ${remotefqdn}/${remoterepo} that you want to mirror?\n(Use a comma , as a delimeter if you want to use more than one - no spaces) " read -r section echo [[ "${section}" =~ ^([a-z0-9]+([a-z0-9-]*[a-z0-9])?)(,([a-z0-9]+([a-z0-9-]*[a-z0-9])?))*$ ]] || doError "Invalid section(s) name(s)...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)...\nYou can use a comma , as a delimiter for multiple sections, but no spaces..." - echo -en "What is the name of the distribution(s) on ${remotefqdn}/${remoterepo}\nthat you want to mirror? (Use a comma , as a delimeter if you want to use more than one - no spaces) " + echo -en "What is the name of the distribution(s) on ${remotefqdn}/${remoterepo} that you want to mirror?\n(Use a comma , as a delimeter if you want to use more than one - no spaces) " read -r distribution echo [[ "${distribution}" =~ ^([a-z0-9]+([a-z0-9-]*[a-z0-9])?)(,([a-z0-9]+([a-z0-9-]*[a-z0-9])?))*$ ]] || doError "Invalid distribution(s) name(s)...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)...\nYou can use a comma , as a delimiter for multiple distributions, but no spaces..."