Skip to content

Commit 2ef7234

Browse files
committed
Fix some silly fails in check_spec.
1 parent 3d99c57 commit 2ef7234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check_spec

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -euo pipefail
1515
cd `dirname "$0"`
1616

1717
update="no"
18-
case "$1" in
18+
case "${1:-}" in
1919
"-u"|"--update")
2020
update="yes"
2121
shift
@@ -43,7 +43,7 @@ list_fails() {
4343
grep ^SassSpec:: | sed -e 's#.*test__##' -e 's# .*##' | sort
4444
}
4545

46-
case "$1" in
46+
case "${1:-}" in
4747
"")
4848
check
4949
;;
@@ -56,7 +56,7 @@ case "$1" in
5656
echo " scss parser values"
5757
;;
5858
"stats")
59-
check | \
59+
(check || true) | \
6060
rg --text --no-line-number --no-unicode \
6161
'^(\d+) runs, (\d+) passing, (\d+) failures, (\d+) todo, (\d+) ignored, (\d+) errors' \
6262
--replace 'echo "$0"; echo "Progress: $[$2] of $[$1-$4-$5] tests passed"' - \

0 commit comments

Comments
 (0)