mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 03:32:27 +01:00
Using shell redirection rather than cat
This commit is contained in:
parent
9c8425d005
commit
af9794634f
|
@ -127,7 +127,7 @@ BATS_OUT="${BATS_TMPNAME}.out"
|
|||
|
||||
bats_preprocess_source() {
|
||||
BATS_TEST_SOURCE="${BATS_TMPNAME}.src"
|
||||
cat "$BATS_TEST_FILENAME" | tr -d '\r' | bats-preprocess > "$BATS_TEST_SOURCE"
|
||||
tr -d '\r' < "$BATS_TEST_FILENAME" | bats-preprocess > "$BATS_TEST_SOURCE"
|
||||
trap bats_cleanup_preprocessed_source err exit
|
||||
trap "bats_cleanup_preprocessed_source; exit 1" int
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user