aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-12-21 14:27:30 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-12-21 14:27:30 -0800
commit632c983ff0f9337bcafb52495ea0213affdf9840 (patch)
tree53bc03a87e1e7f93d576d3ba0254336e65c250f3
parentsnapshots-create.sh: SC2066 (diff)
downloadmastermirror-scripts-632c983ff0f9337bcafb52495ea0213affdf9840.tar.gz
mastermirror-scripts-632c983ff0f9337bcafb52495ea0213affdf9840.tar.bz2
mastermirror-scripts-632c983ff0f9337bcafb52495ea0213affdf9840.zip
snapshots-create.sh: fix overquoting
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsnapshots-create.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index c66459c..06e41eb 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -137,7 +137,7 @@ COMMON_TAR_OPTIONS=(
'--group=portage'
# Excluded content:
'--no-wildcards'
- "--exclude-from='${EXCLUSION_LIST}'"
+ "--exclude-from=${EXCLUSION_LIST}"
# Do not capture any xattr/acl info at all.
'--no-acls'
'--no-xattrs'
@@ -146,19 +146,19 @@ COMMON_TAR_OPTIONS=(
# volume header is NOT supported by:
# - Docker https://bugs.gentoo.org/631644
# - tarsync https://bugs.gentoo.org/631616
- #"--label='${FILENAME%.bz2}'"
+ #"--label=${FILENAME%.bz2}"
# do everything relative to the destination
- "--directory='${MASTER}'"
+ "--directory=${MASTER}"
)
# create the tarball and move it to the right location
write_time_log "START TARBALL(tar,old) $(date -u)"
if [ ! -f "${FILENAME%.bz2}" ]; then
OLD_TARBALL_OPTIONS=(
# The . needs to match the file argument
- "--transform='s,^\\.,portage,g'"
+ "--transform=s,^\\.,portage,g"
# The operation, destination, source arguments
'--create'
- "--file='${FILENAME%.bz2}'"
+ "--file=${FILENAME%.bz2}"
.
)
tar \
@@ -205,10 +205,10 @@ if [ ! -f "${FILENAME_NEW%.xz}" ]; then
NEW_TARBALL_OPTIONS=(
# The . needs to match the file argument
- "--transform='s,^\\.,${FILENAME_NEW%%.*},g'"
+ "--transform=s,^\\.,${FILENAME_NEW%%.*},g"
# The operation, destination, source arguments
'--create'
- "--file='${FILENAME_NEW%.xz}'"
+ "--file=${FILENAME_NEW%.xz}"
.
)
tar \