aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-12-14 10:03:15 -0500
committerB. Stack <bgstack15@gmail.com>2023-12-14 10:03:15 -0500
commit521ce03a1456d44808303e0986a9ac111986b9ff (patch)
treeb3c96671013902bd7cfb295f02b69829e7e9e1e5
parentyummirror: remove trailing slash in inurl (diff)
downloadcoprmirror-master.tar.gz
coprmirror-master.tar.bz2
coprmirror-master.zip
fix wget, use $YUMMIRRORSCRIPTHEADmaster
-rw-r--r--.gitignore1
-rwxr-xr-xcoprmirror.sh5
2 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 8be9c70..0a41b9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ bgstack15-home/*
*.conf
*.gpg
new/
+old/
diff --git a/coprmirror.sh b/coprmirror.sh
index c73abf1..465fa58 100755
--- a/coprmirror.sh
+++ b/coprmirror.sh
@@ -8,6 +8,7 @@
# Project: coprmirror
# Purpose: Mirror all available architectures of a COPR to local disk
# History:
+# 2022-02-14 fix wget of pubkey to --output-document
# Usage:
# In a cronjob:
# COPRMIRROR_CONF=coprmirror.conf ./coprmirror.sh 1>/dev/null 2>&1
@@ -35,7 +36,7 @@ echo "${listing}"
test -z "${DRYRUN}" && {
mkdir -p "${workdir}"
# the -N prevents pubkey.gpg.1
- wget -N --output-file="${workdir}/pubkey.gpg" "${copr_url}/${copr}/pubkey.gpg"
+ wget -N --output-document="${workdir}/pubkey.gpg" "${copr_url}/${copr}/pubkey.gpg"
}
for word in ${listing} ;
@@ -58,5 +59,5 @@ do
include_sources="${include_sources}" \
resign_repo="${resign_repo}" \
gpgkey= \
- ./yummirror.sh
+ "${YUMMIRROR_SCRIPT}"
done
bgstack15