Page MenuHomeDevCentral

Improve Arcanist shell scripts
ClosedPublic

Authored by dereckson on Oct 25 2017, 02:34.
Tags
None
Referenced Files
F32893122: D1118.diff
Sat, Jun 13, 00:24
F32877715: D1118.id2854.diff
Fri, Jun 12, 20:24
F32877636: D1118.id2853.diff
Fri, Jun 12, 20:23
Unknown Object (File)
Thu, Jun 11, 18:15
Unknown Object (File)
Sun, Jun 7, 18:01
Unknown Object (File)
Fri, Jun 5, 22:43
Unknown Object (File)
Wed, Jun 3, 15:25
Unknown Object (File)
Sun, May 24, 00:59
Subscribers
None

Details

Summary

Fixes suggested by shellcheck:

  • use $() instead of deprecated ``
  • avoid cat when pipelines can be used
  • quote variables
Test Plan

shellcheck

Diff Detail

Repository
rWK Wynter Kitro utilities
Lint
Lint Passed
SeverityLocationCodeMessage
Advicearcanist/arc-paste-file.sh:16SC2094SHELLCHECK
Advicearcanist/arc-paste-file.sh:16SC2094SHELLCHECK
Unit
No Test Coverage
Branch
shellcheck (branched from master)
Build Status
Buildable 1760
Build 2008: arc lint + arc unit

Event Timeline

We're sure it only reads.

This revision is now accepted and ready to land.Oct 25 2017, 02:35
This revision was automatically updated to reflect the committed changes.