2020-05-13 06:33:34 +07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
main() {
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
|
2020-05-15 08:47:33 +07:00
|
|
|
yarn --frozen-lockfile
|
2020-05-13 06:33:34 +07:00
|
|
|
|
|
|
|
git submodule update --init
|
2020-11-27 20:34:09 +07:00
|
|
|
# We do not `yarn vscode` to make fmt.sh faster.
|
2020-05-13 06:33:34 +07:00
|
|
|
# If the patch fails to apply, then it's likely already applied
|
|
|
|
yarn vscode:patch &> /dev/null || true
|
|
|
|
|
|
|
|
yarn fmt
|
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|