Skip to content
Snippets Groups Projects
Verified Commit ef13fead authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Add missing set -euo pipefail

parent af462d25
No related branches found
No related tags found
2 merge requests!415CI check_... scripts improvements,!412V1.27.5.13 release
#!/bin/bash
count=$(pgrep "beekeeper" -c)
set -euo pipefail
count=$(pgrep "beekeeper" --count || true)
if [[ $count -gt 0 ]]; then
echo "Error: There is dangling 'beekeeper' process left."
......
#!/bin/bash
set -euo pipefail
function find_password_private_keys() {
find . -path "*/clive/*/latest.log" -print0 |
xargs -0 \
grep --with-filename --line-number --ignore-case --word-regexp --extended-regexp \
'(pass(word)?|[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51})' |
grep "$@" --invert-match --extended-regexp \
'(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)'
'(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)' || true
}
amount_of_occurrences=$(find_password_private_keys --count)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment