From 9081c6afbd1b59404901a4e6e004d6cfa3b2beb0 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sat, 20 Feb 2016 21:40:41 -0800 Subject: [PATCH] Replace non-standard `rename` in update.sh. A more standard and widely available alternative implementation created by @dominikh in https://github.com/gopherjs/gopherjs.github.io/issues/43#issuecomment-186747811. Fixes #43. --- playground/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playground/update.sh b/playground/update.sh index 188aeb8d..f6d8f003 100755 --- a/playground/update.sh +++ b/playground/update.sh @@ -36,4 +36,5 @@ cp -r $GOROOT/pkg/darwin_amd64_js_min/* $PKG rm -r /tmp/gopherjsplayground_goroot rm -r /tmp/gopherjsplayground_gopath -rename 's/\.a/\.a.js/' $(find $PKG -name "*.a") +# Rename all *.a files in $PKG to *.a.js. +find "$PKG" -name "*.a" -exec sh -c 'mv $0 $0.js' {} \;