sonarqube-scan-action/test/assertFileContains
2024-05-15 17:45:21 +02:00

10 lines
No EOL
147 B
Bash
Executable file

#!/bin/bash
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
assertFileExists $1
if ! grep -q $2 $1; then
error "'$2' not found in '$1'"
exit 1
fi