Skip to content

Commit 67ff2a8

Browse files
authored
fix: always exit true using if rather than test (IN-000) (#382)
1 parent d657834 commit 67ff2a8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/jobs/monorepo/monorepo_types_tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ steps:
1313
- attach_workspace:
1414
at: ~/voiceflow
1515
- run:
16-
command: test -d ~/voiceflow/node_modules/.cache/turbo && cp -R ~/voiceflow/node_modules/.cache/turbo /tmp/turbo-cache
16+
command: |
17+
if [[ -d ~/voiceflow/node_modules/.cache/turbo ]]; then
18+
cp -R ~/voiceflow/node_modules/.cache/turbo /tmp/turbo-cache
19+
fi
1720
- install_node_modules
1821
- run:
1922
command: |
20-
rm -rf ~/voiceflow/node_modules/.cache/turbo
21-
test -d /tmp/turbo-cache && cp -R /tmp/turbo-cache ~/voiceflow/node_modules/.cache/turbo
23+
if [[ -d /tmp/turbo-cache ]]; then
24+
rm -rf ~/voiceflow/node_modules/.cache/turbo
25+
cp -R /tmp/turbo-cache ~/voiceflow/node_modules/.cache/turbo
26+
fi
2227
- monorepo_types_tests:
2328
run_on_root: << parameters.run_on_root >>
2429
force_execution: true

0 commit comments

Comments
 (0)