mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
7192afdd6b
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
8 lines
168 B
Bash
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
|