Skip to content

Commit 0c8a8fc

Browse files
committed
Rename temporary artifacts dir to avoid collissions with system TMPDIR
1 parent c99e5ef commit 0c8a8fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

optimize_workspace.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ echo "done."
1717

1818
echo -n "Optimizing artifacts in workspace..."
1919
mkdir -p artifacts
20-
TMPDIR=$(mktemp -p "$(pwd)" -d artifacts.XXXXXX)
20+
TMPARTIFACTS=$(mktemp -p "$(pwd)" -d artifacts.XXXXXX)
2121
# Optimize artifacts
2222
(
23-
cd "$TMPDIR"
23+
cd "$TMPARTIFACTS"
2424

2525
for WASM in ../target/wasm32-unknown-unknown/release/*/*.wasm
2626
do
@@ -32,7 +32,7 @@ TMPDIR=$(mktemp -p "$(pwd)" -d artifacts.XXXXXX)
3232
done
3333
mv ./*.wasm ../artifacts
3434
)
35-
rm -rf "$TMPDIR"
35+
rm -rf "$TMPARTIFACTS"
3636
echo "done."
3737
echo -n "Post-processing artifacts in workspace..."
3838
(

0 commit comments

Comments
 (0)