Skip to content

Commit 9081c6a

Browse files
committed
Replace non-standard rename in update.sh.
A more standard and widely available alternative implementation created by @dominikh in #43 (comment). Fixes #43.
1 parent 219c7c2 commit 9081c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playground/update.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ cp -r $GOROOT/pkg/darwin_amd64_js_min/* $PKG
3636
rm -r /tmp/gopherjsplayground_goroot
3737
rm -r /tmp/gopherjsplayground_gopath
3838

39-
rename 's/\.a/\.a.js/' $(find $PKG -name "*.a")
39+
# Rename all *.a files in $PKG to *.a.js.
40+
find "$PKG" -name "*.a" -exec sh -c 'mv $0 $0.js' {} \;

0 commit comments

Comments
 (0)