sonarqube-scan-action/test/assertFileExists

8 lines
119 B
Plaintext
Raw Normal View History

2024-12-11 10:03:13 +00:00
#!/bin/bash
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
if [ ! -f $1 ]; then
error "File '$1' not found"
exit 1
fi