Skip to content

Commit bd322c7

Browse files
committed
chore: Use pushd/popd vs subshell
1 parent db959f3 commit bd322c7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/build_go_slim.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ done
107107

108108
if [[ $compress != 0 ]]; then
109109
log "--- Compressing coder-slim binaries using zstd level $compress ($dest_dir/coder.tar.zst)"
110-
(
111-
cd "$dest_dir"
112-
tar cf coder.tar coder-*
113-
rm coder-*
114-
zstd --ultra --long -"${compress}" --rm --no-progress coder.tar -o coder.tar.zst
115-
)
110+
pushd "$dest_dir"
111+
tar cf coder.tar coder-*
112+
rm coder-*
113+
zstd --ultra --long -"${compress}" --rm --no-progress coder.tar -o coder.tar.zst
114+
popd
116115
fi

0 commit comments

Comments
 (0)