Page MenuHomeDevCentral

Improve Arcanist shell scripts
ClosedPublic

Authored by dereckson on Oct 25 2017, 02:34.
Tags
None
Referenced Files
F51820851: D1118.id2853.diff
Mon, Sep 28, 09:38
F51752065: D1118.id.diff
Sun, Sep 27, 21:46
Unknown Object (File)
Sun, Sep 27, 04:41
Unknown Object (File)
Sat, Sep 26, 23:13
Unknown Object (File)
Sat, Sep 26, 17:17
Unknown Object (File)
Sat, Sep 26, 13:25
Unknown Object (File)
Sat, Sep 26, 11:22
Unknown Object (File)
Sat, Sep 26, 08:40
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.