Skip to content

Commit

Permalink
Drop xargs in favour of while loop and switch one another set +e
Browse files Browse the repository at this point in the history
  • Loading branch information
yermulnik committed May 27, 2022
1 parent 98cdf38 commit 4ab85e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
go test -v ./...
mkdir -p build
go build -v -o build/tfswitch
find ./test-data/* -type d | xargs -n 1 ./build/tfswitch -c
find ./test-data/* -type d -print0 | while read -r -d $'\0' TEST_PATH; do
./build/tfswitch -c "${TEST_PATH}" || exit 1
done
release:
docker:
Expand All @@ -40,7 +42,7 @@ jobs:
- checkout
- run:
command: |
set +e
set -e
source version
export RELEASE_VERSION;
RELEASE_VERSION=$RELEASE_VERSION.${CIRCLE_BUILD_NUM}
Expand Down

0 comments on commit 4ab85e4

Please sign in to comment.