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

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