Page MenuHomePhabricator

[keyserver] Clean up `run-prod.sh` using ShellCheck
ClosedPublic

Authored by abosh on Aug 2 2022, 8:59 AM.
Tags
None
Referenced Files
F2847267: D4712.id15242.diff
Mon, Sep 30, 2:39 AM
F2847255: D4712.id15216.diff
Mon, Sep 30, 2:36 AM
F2846822: D4712.diff
Mon, Sep 30, 12:25 AM
Unknown Object (File)
Sun, Sep 1, 11:21 PM
Unknown Object (File)
Aug 24 2024, 11:26 PM
Unknown Object (File)
Aug 24 2024, 11:26 PM
Unknown Object (File)
Aug 24 2024, 11:26 PM
Unknown Object (File)
Aug 24 2024, 11:23 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

abosh retitled this revision from [keyserver] Clean up `run-prod.sh` to [keyserver] Clean up `run-prod.sh` using ShellCheck.Aug 2 2022, 9:30 AM
abosh edited the summary of this revision. (Show Details)
atul added inline comments.
keyserver/bash/run-prod.sh
8

Thanks for sharing the link. So it looks like the relevant part is:

If you don't care that ShellCheck is unable to account for the file, specify # shellcheck source=/dev/null.

which makes sense.

This revision is now accepted and ready to land.Aug 2 2022, 10:28 AM