1
0
Fork 0
mirror of synced 2026-06-05 12:15:15 +00:00
sonarcloud-github-action/test/assertFileExists

10 lines
No EOL
137 B
Bash
Executable file

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