fix: wrong pushd usage

This commit is contained in:
naskya 2023-08-31 22:42:40 +09:00
parent c9199fd11c
commit 304e9d21ec
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -84,9 +84,8 @@ say "Done! We're almost there.\n"
## prevent migration errors
if [[ ! -f packages/backend/native-utils/built/index.js ]]; then
say "Something went wrong orz... Gonnya try fixing that."
pushd
running "pushd; cd packages/backend/native-utils; NODE_ENV=production pnpm build; popd"
cd packages/backend/native-utils
running "pushd packages/backend/native-utils; NODE_ENV=production pnpm build; popd"
pushd packages/backend/native-utils
NODE_ENV=production pnpm build
popd