Blame SOURCES/2-ci-skip-python-agents-in-shellcheck.patch

b4b3ce
From 059effc058758c1294d80f03741bf5c078f1498d Mon Sep 17 00:00:00 2001
b4b3ce
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
b4b3ce
Date: Fri, 13 Jul 2018 13:22:56 +0200
b4b3ce
Subject: [PATCH 2/3] CI: skip Python agents in shellcheck
b4b3ce
b4b3ce
---
b4b3ce
 ci/build.sh | 1 +
b4b3ce
 1 file changed, 1 insertion(+)
b4b3ce
b4b3ce
diff --git a/ci/build.sh b/ci/build.sh
b4b3ce
index 608387ad..c331e9ab 100755
b4b3ce
--- a/ci/build.sh
b4b3ce
+++ b/ci/build.sh
b4b3ce
@@ -58,6 +58,7 @@ check_all_executables() {
b4b3ce
 	echo "Checking executables and .sh files..."
b4b3ce
 	while read -r script; do
b4b3ce
 		file --mime "$script" | grep 'charset=binary' >/dev/null 2>&1 && continue
b4b3ce
+		file --mime "$script" | grep 'text/x-python' >/dev/null 2>&1 && continue
b4b3ce
 		head=$(head -n1 "$script")
b4b3ce
 		[[ "$head" =~ .*ruby.* ]] && continue
b4b3ce
 		[[ "$head" =~ .*zsh.* ]] && continue
b4b3ce
-- 
b4b3ce
2.17.1
b4b3ce