Skip to content

Commit

Permalink
fix wc -l to not count empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Nov 12, 2024
1 parent 045fc0e commit cb1728f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ jobs:
run: python -c "from n_vault import Vault; Vault().delete_many(Vault().list_all())"

- name: List with Python library
run: python -c "from n_vault import Vault; print('\n'.join(Vault().list_all()))" | wc -l | grep -q "0"
run: python -c "from n_vault import Vault; print('\n'.join(Vault().list_all()))" | grep -ve '^\s*$' | wc -l | grep -q "0"

- name: Store secret using Python library
run: |
Expand Down

0 comments on commit cb1728f

Please sign in to comment.