Skip to content

Commit 822ea83

Browse files
committed
fix: use command -v instead of which in env.sh
1 parent 9b9832a commit 822ea83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ TEMP_DIR_PARALLEL_TEST_SUITE="${TMPDIR:-/tmp}/bashunit/parallel/${_OS:-Unknown}/
147147
TEMP_FILE_PARALLEL_STOP_ON_FAILURE="$TEMP_DIR_PARALLEL_TEST_SUITE/.stop-on-failure"
148148
TERMINAL_WIDTH="$(env::find_terminal_width)"
149149
FAILURES_OUTPUT_PATH=$(mktemp)
150-
CAT="$(which cat)"
150+
CAT="$(command -v cat)"
151151

152152
if env::is_dev_mode_enabled; then
153153
internal_log "info" "Dev log enabled" "file:$BASHUNIT_DEV_LOG"

0 commit comments

Comments
 (0)