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, Nov 15, 4:18 PM
Unknown Object (File)
Fri, Nov 15, 10:24 AM
Unknown Object (File)
Sat, Nov 2, 5:29 PM
Unknown Object (File)
Fri, Oct 25, 2:42 PM
Unknown Object (File)
Thu, Oct 24, 6:36 AM
Unknown Object (File)
Oct 18 2024, 12:06 PM
Unknown Object (File)
Oct 15 2024, 9:15 AM
Unknown Object (File)
Oct 12 2024, 5:49 AM
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