Page MenuHomePhabricator

[services] Clean up `build_service.sh` using ShellCheck
ClosedPublic

Authored by abosh on Aug 2 2022, 9:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 26, 6:44 AM
Unknown Object (File)
Wed, Jun 26, 6:44 AM
Unknown Object (File)
Wed, Jun 26, 6:43 AM
Unknown Object (File)
Wed, Jun 26, 6:39 AM
Unknown Object (File)
Sun, Jun 23, 7:38 PM
Unknown Object (File)
Sun, Jun 23, 12:29 AM
Unknown Object (File)
Fri, Jun 21, 4:31 AM
Unknown Object (File)
Wed, Jun 19, 7:56 PM

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 Backup, Blob, and Tunnelbroker builds so if those workflows continue 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

services/lib/docker/build_service.sh
11–13 ↗(On Diff #15227)

(warning): This ln has no destination. Check the arguments, or specify '.' explicitly.

Note that @jon removes these lines in D4671, but since that hasn't been landed yet and this is blocking adding ShellCheck to the CI, I've made this change here.

I don't have much context on this script I think, and I'm a bad choice for a first-pass reviewer except for cases listed here

Note that @jon removes these lines in D4671, but since that hasn't been landed yet and this is blocking adding ShellCheck to the CI, I've made this change here.

Lets leave a note on that diff so it's clear that it needs to be rebased before it can be landed.

I'm fine with rebasing

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