Skip to content

Commit da320c9

Browse files
authored
Adding comment to explain double-negative if condition
1 parent 1ba5575 commit da320c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/ghe-backup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ commands+=("
238238
echo \"$cmd_title\"
239239
ghe-backup-repositories || printf %s \"repositories \" >> \"$failures_file\"")
240240

241+
# Pages backups are skipped only if GHE_BACKUP_PAGES is explicitly set to 'no' to guarantee backward compatibility.
242+
# If a customer upgrades backup-utils but keeps the config file from a previous version, Pages backups still work as expected.
243+
241244
if [ "$GHE_BACKUP_PAGES" != "no" ]; then
242245
cmd_title=$(log_info "Backing up GitHub Pages artifacts ...")
243246
commands+=("

0 commit comments

Comments
 (0)