Skip to content

Commit 931dcdb

Browse files
authored
Merge pull request #497 from github/juruen/fix-redirect
Redirect ghe-export-audit-logs stderr output when using verbose output
2 parents 06f9930 + 5c6c71d commit 931dcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-backup-mysql-audit-log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ setup(){
4141
# months in MySQL. For each month: number of entries, minum ID, maximum ID
4242
fetch_current_meta(){
4343
local meta
44-
if ! meta=$(ghe-ssh "$host" "sudo ghe-export-audit-logs months" | grep -v NULL 2>&3); then
44+
if ! meta=$(ghe-ssh "$host" "sudo ghe-export-audit-logs months" 2>&3 | grep -v NULL 2>&3); then
4545
ghe_verbose "Error: failed to retrieve audit log metadata"
4646
exit 1
4747
fi

0 commit comments

Comments
 (0)