Skip to content

Commit f8847c1

Browse files
myitcvdmitshur
authored andcommitted
playground: Remove SIG prefix from signals.
This enables the update.sh script to run with sh shell, in addition to bash shell. Also use -f option so rm succeeds even if pkg directory doesn't exist.
1 parent cbdec89 commit f8847c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cleanup() {
88
exit
99
}
1010

11-
trap cleanup EXIT SIGHUP SIGINT SIGTERM
11+
trap cleanup EXIT HUP INT TERM
1212

1313
go install github.com/gopherjs/gopherjs/...
1414

@@ -20,7 +20,7 @@ gopherjs build -m
2020
# The GOPATH workspace where the GopherJS project is.
2121
gopherjsgopath=$(go list -f '{{.Root}}' github.com/gopherjs/gopherjs)
2222

23-
rm -r pkg/
23+
rm -rf pkg/
2424

2525
# Use an empty GOPATH workspace with just gopherjs,
2626
# so that all the standard library packages get written to GOROOT/pkg.

0 commit comments

Comments
 (0)