Skip to content

Commit 391a9c0

Browse files
committed
Fixing directory
1 parent 42dec26 commit 391a9c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
set -e # Exit with nonzero exit code if anything fails
33

4-
INPUT_FILE=$(find . -maxdepth 2 -name "*.bs" -print -quit)
5-
64
curlretry() {
75
curl --retry 2 "$@"
86
}
97

108
curlbikeshed() {
9+
INPUT_FILE=$(find . -maxdepth 1 -name "*.bs" -print -quit)
10+
1111
# The Accept: header ensures we get the error output even when warnings are produced, per
1212
# https://github.com/whatwg/whatwg.org/issues/227#issuecomment-419969339.
1313
HTTP_STATUS=$(curlretry https://api.csswg.org/bikeshed/ \
@@ -25,7 +25,7 @@ curlbikeshed() {
2525
fi
2626
}
2727

28-
curlbikeshed "index.html"
28+
cd docs && curlbikeshed "index.html"
2929

3030
if [ -d out ]; then
3131
echo Copy the generated spec into out/index.html

0 commit comments

Comments
 (0)