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

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