sonarqube-scan-action/test/assertFileExists
2025-09-04 12:47:22 +05:30

10 lines
No EOL
148 B
Bash
Executable file

#!/usr/bin/env bash
set -eou pipefail
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
if [ ! -f "$1" ]; then
error "File '$1' not found"
exit 1
fi