mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-14 17:16:52 +00:00
Issue PET-9252: Uodated the code from tag v5.3.1
This commit is contained in:
parent
3e30ce1f41
commit
f07a348728
27 changed files with 323 additions and 446 deletions
|
|
@ -1,10 +1,14 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
||||
|
||||
assertFileExists $1
|
||||
scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")
|
||||
|
||||
if ! grep -q $2 $1; then
|
||||
$scriptDir/assertFileExists "$1"
|
||||
|
||||
if ! grep -q "$2" "$1"; then
|
||||
error "'$2' not found in '$1'"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue