Page MenuHomePhabricator

[keyserver] Clean up `scp-backup.sh` using ShellCheck
ClosedPublic

Authored by abosh on Aug 2 2022, 9:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 4:06 PM
Unknown Object (File)
Fri, Jun 21, 4:06 PM
Unknown Object (File)
Fri, Jun 21, 4:05 PM
Unknown Object (File)
Fri, Jun 21, 3:54 PM
Unknown Object (File)
Mon, Jun 3, 9:37 AM
Unknown Object (File)
May 10 2024, 1:11 PM
Unknown Object (File)
May 10 2024, 1:11 PM
Unknown Object (File)
May 10 2024, 1:11 PM
Subscribers

Details

Summary

Related Linear issue here. This is part of a set of diffs that will allow ShellCheck to be added to the CI. See inline comments for specific details of the ShellCheck error/warning output.

Test Plan

ShellCheck

Additionally, this script is run during the keyserver build so if that workflow continues to pass CI we can reasonably assume that the script continues to work as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Feel like there's probably a cleaner way to determine NEWEST_BACKUP, but this resolves the relevant shellcheck issue.

This revision is now accepted and ready to land.Aug 2 2022, 10:30 AM
In D4713#135601, @atul wrote:

Feel like there's probably a cleaner way to determine NEWEST_BACKUP, but this resolves the relevant shellcheck issue.

I concur! But since I wanted to appease ShellCheck I didn't think too hard about re-organizing the quotes since it can get messy.

Tested this in prod and it works