[script] let alias to take effect (#4708)

This commit is contained in:
Rongli Sun
2020-03-19 22:24:03 -07:00
committed by GitHub
parent 133ec09b80
commit 736cb27d3a
+4
View File
@@ -34,6 +34,10 @@ die() {
exit 1
}
# Aliases are not expanded when the shell is not interactive, unless the
# expand_aliases shell option is set using shopt.
shopt -s expand_aliases
if command -v clang-format-6.0 > /dev/null; then
alias clang-format=clang-format-6.0
elif command -v clang-format > /dev/null; then