Skip to content

Commit 5639ce2

Browse files
committed
Having doubts about generate_checksums
If I edit /etc/pov/backup and add new things to back up, and re-run pov-simple-backup -s, it would currently keep old SHA256SUMS files that would not list the newly-backed-up things. Also I've seen situations when interrupting encryptdir.py with ^C would cause the script to go ahead and continue running, generating SHA256SUMS even if several files are missing.
1 parent 114e364 commit 5639ce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ generate_checksums() {
394394
where=$(backupdir "$suffix")
395395
info "Generating checkums in $where"
396396
local outfile=$where/SHA256SUMS
397+
# XXX: maybe it should always overwrite?
397398
check_overwrite "$outfile" || return
398399
[ $dry_run -ne 0 ] && return
399400
# shellcheck disable=SC2015

0 commit comments

Comments
 (0)