Page MenuHomeDevCentral

Improve Arcanist shell scripts
ClosedPublic

Authored by dereckson on Oct 25 2017, 02:34.
Tags
None
Referenced Files
F7772611: D1118.diff
Fri, May 2, 14:40
Unknown Object (File)
Wed, Apr 30, 07:14
Unknown Object (File)
Wed, Apr 30, 04:12
Unknown Object (File)
Mon, Apr 28, 06:21
Unknown Object (File)
Fri, Apr 25, 06:54
Unknown Object (File)
Thu, Apr 24, 18:36
Unknown Object (File)
Sun, Apr 20, 20:49
Unknown Object (File)
Sun, Apr 20, 10:46
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.