Fixed a bug in step 4
This commit is contained in:
@@ -1 +1 @@
|
||||
0.1
|
||||
0.1.1
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user