Skip to content

Commit 43214cc

Browse files
committed
Fix colors on failure
1 parent ceba02f commit 43214cc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

check-runtime-editor-refs.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env bash
1+
#!/bin/bash
2+
23
set -euo pipefail
34

45
RUNTIME_DIR="Packages/com.unity.inputsystem/InputSystem/Runtime"
@@ -11,9 +12,9 @@ FORBIDDEN_REGEX=(
1112
'\bUnityEngine\.InputSystem\.Editor(\.[A-Za-z0-9_]+)*\b'
1213
)
1314

14-
RED='\033[0;31m'
15-
GREEN='\033[0;32m'
16-
NC='\033[0m'
15+
RED=$'\033[0;31m'
16+
GREEN=$'\033[0;32m'
17+
NC=$'\033[0m'
1718

1819
command -v rg >/dev/null 2>&1 || { echo "ERROR: ripgrep (rg) is not installed. See https://github.com/BurntSushi/ripgrep#installation" >&2; exit 1; }
1920

0 commit comments

Comments
 (0)