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

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