Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 18da454

Browse files
authored
inform user of environment dependency (#2910)
This should prevent surprises for anyone else manually invoking ./bin/format.sh
1 parent 6ed861d commit 18da454

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/format.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
3+
if [ -z "$EXERCISM_PRETTIER_VERSION" ]; then
4+
echo "This script requires the EXERCISM_PRETTIER_VERSION variable to work."
5+
echo "Please see docs/maintainers/style-guide.md for guidance."
6+
exit 1
7+
fi
28

39
npx "prettier@$EXERCISM_PRETTIER_VERSION" --write "**/*.{js,jsx,ts,tsx,css,sass,scss,html,json,md,yml}"

0 commit comments

Comments
 (0)