Fix shellcheck SC2153 and SC1090
This commit is contained in:
parent
73adf5dc99
commit
f9c07e28fa
3 changed files with 5 additions and 5 deletions
|
|
@ -11,8 +11,7 @@ addons:
|
|||
- shellcheck
|
||||
|
||||
script:
|
||||
- shellcheck -e SC2153 -e SC2166 -e SC1090 duplicity-backup.sh
|
||||
- shellcheck -e SC2034 duplicity-backup.conf.example
|
||||
- shellcheck -e SC2034 -e SC2166 duplicity-backup.sh duplicity-backup.conf.example
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
# See the `STATIC_OPTIONS`, `CLEAN_UP_TYPE` and `CLEAN_UP_VARIABLE` parameters in particular.
|
||||
#
|
||||
# * Before asking something about duplicity-backup.sh, ensure that your question
|
||||
# isn’t actually concerning duplicity ;)
|
||||
# isn't actually concerning duplicity ;)
|
||||
# First, make sure you can perform a backup with duplicity without using this script.
|
||||
# If you can't make the backup work with duplicity alone, the problem is probably
|
||||
# concerning duplicity and not this script. If you manage to make a backup with duplicity
|
||||
|
|
@ -122,7 +122,7 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/"
|
|||
# ------------------------------------------------------------------------------
|
||||
# Instead of setting the password needed for the backup destination in the
|
||||
# DEST url, you can supply it in the FTP_PASSWORD variable below, which is
|
||||
# used by most, if not all backends, regardless of it’s name.
|
||||
# used by most, if not all backends, regardless of its name.
|
||||
# Duplicity's official documentation states:
|
||||
# "Supported by most backends which are password capable. More secure than
|
||||
# setting it in the backend url (which might be readable in the operating
|
||||
|
|
@ -335,7 +335,7 @@ CLEAN_UP_VARIABLE="4"
|
|||
# (a full backup every 7 days), and you execute duplicity-backup once a day.
|
||||
# After six months you'll have 25 full backups, each with daily incrementals
|
||||
# in between. Perhaps you're keeping the backups past 1 month "just in case",
|
||||
# and so the older incrementals are overkill – weekly full backups beyond
|
||||
# and so the older incrementals are overkill - weekly full backups beyond
|
||||
# one month backward would suffice. In this case you can set
|
||||
# "REMOVE_INCREMENTALS_OLDER_THAN to, say, "4" which will delete the
|
||||
# incrementals for backup sets beyond the four most recent, keeping
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ done
|
|||
# Read config file if specified
|
||||
if [ ! -z "${CONFIG}" -a -f "${CONFIG}" ];
|
||||
then
|
||||
# shellcheck source=duplicity-backup.conf.example
|
||||
. "${CONFIG}"
|
||||
else
|
||||
echo "ERROR: can't find config file! (${CONFIG})" >&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue