sapling/tests/helpers-usechg.sh
Jun Wu 7192afdd6b linter: disable ShellCheck for hg
Summary:
The ShellCheck linter:
- Conflict with hg check-code. ex. on "$()" vs "``".
- Over picky. ex. SC2148 should only run on scripts with `x` bit.

Therefore disable it for scm/hg.

Reviewed By: zertosh

Differential Revision: D6887739

fbshipit-source-id: 9447a4582ab5d2798a382d9dc715eb319d4255c0
2018-04-13 21:51:03 -07:00

8 lines
168 B
Bash

# Make the test use chg if possible
if [ -x "$RUNTESTDIR/../contrib/chg/chg" ] && [ -z "$CHGHG" ]; then
CHGHG="${HG:-hg}"
export CHGHG
alias hg="${CHG:-chg}"
fi