sonarqube-scan-action/test/assertFileDoesntExist
2024-12-11 11:03:13 +01:00

8 lines
113 B
Bash
Executable File

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