Skip to content

Commit 450573d

Browse files
authored
Add "* No leaked keys found"
Adds a message if No leaked keys are found. The current behavior is to just echo **"Checking for leaked ssh keys ..."** and then exit if no leaked keys are found. (https://github.com/github/backup-utils/blob/c299602f863b808e45f1b90e8a4ad632ffb3c7ad/bin/ghe-backup#L261). This can sometime be confusing if users are expecting output before the backup or restore process completes.
1 parent 5200c89 commit 450573d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

share/github-backup-utils/ghe-detect-leaked-ssh-keys

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ if $leaked_keys_found; then
124124
echo "* (An upgrade may be required)"
125125
echo
126126
fi
127+
else
128+
echo "* No leaked keys found"
127129
fi
128130

129131
# Cleanup temp dir

0 commit comments

Comments
 (0)