Skip to content

fix: preserve nightly backup status outside subshell#3

Open
Gujiassh wants to merge 2 commits intoslowmist:mainfrom
Gujiassh:fix/nightly-backup-status
Open

fix: preserve nightly backup status outside subshell#3
Gujiassh wants to merge 2 commits intoslowmist:mainfrom
Gujiassh:fix/nightly-backup-status

Conversation

@Gujiassh
Copy link
Copy Markdown

@Gujiassh Gujiassh commented Mar 6, 2026

Summary

  • keep the nightly git-backup status in the parent shell so the final summary reflects the real backup result
  • use git -C for the backup steps instead of a subshell-scoped cd block

Testing

  • bash -n scripts/nightly-security-audit.sh

Gujiassh and others added 2 commits March 6, 2026 14:53
Use the checked-out branch name for nightly brain backups so repositories that default to master or custom branch names still push successfully.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant