Skip to content

Commit a6891dc

Browse files
committed
excluding from the right script this time
1 parent 1906daa commit a6891dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/check_enterprise_imports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
99
cdroot
1010

1111
set +e
12-
find . -regex ".*\.go" | grep -v "./enterprise" | xargs grep -n "github.com/coder/coder/enterprise"
12+
find . -regex ".*\.go" | grep -v "./enterprise" | grep -v "./scripts/auditdocgen/main.go" | xargs grep -n "github.com/coder/coder/enterprise"
1313
# reverse the exit code because we want this script to fail if grep finds anything.
1414
status=$?
1515
set -e

scripts/check_unstaged.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
66
cdroot
77

8-
FILES="$(git ls-files --other --modified --exclude-standard -- './scripts/auditdocgen/main.go')"
8+
FILES="$(git ls-files --other --modified --exclude-standard)"
99
if [[ "$FILES" != "" ]]; then
1010
mapfile -t files <<<"$FILES"
1111

0 commit comments

Comments
 (0)