Skip to content

Commit

Permalink
Use modern bash syntax for tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Promislow <[email protected]>
  • Loading branch information
ericpromislow committed Jul 25, 2023
1 parent 0245099 commit 49899fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bats/tests/helpers/vm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ factory_reset() {
capture_logs
fi
ENGINE_CONFIG="${PATH_APP_HOME}/rd-engine.json"
if [ -f "$ENGINE_CONFIG" ] && [ -z "$(cat "$ENGINE_CONFIG")" ]; then
if [[ -f $ENGINE_CONFIG && -s $ENGINE_CONFIG ]]; then
rm "$ENGINE_CONFIG"
fi

Expand Down

0 comments on commit 49899fe

Please sign in to comment.