From e82b22fd6b29fe1cba446288739da7b9f8f6f072 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Tue, 26 May 2020 07:36:47 -0700 Subject: [PATCH] Adding license header to check_python_scripts.sh Signed-off-by: Tim 'mithro' Ansell --- .github/check_python_scripts.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/check_python_scripts.sh b/.github/check_python_scripts.sh index 24a66231..1587da76 100755 --- a/.github/check_python_scripts.sh +++ b/.github/check_python_scripts.sh @@ -1,8 +1,15 @@ -#!/bin/bash +#!/usr/bin/env bash +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC echo echo "===================================" -echo "Check python utf coding and shebang" +echo "Check Python UTF coding and shebang" echo "===================================" echo @@ -29,7 +36,8 @@ fi if [ ! -z "$ERROR_FILES_UTF_CODING" ]; then for file in $ERROR_FILES_UTF_CODING; do - echo "ERROR: $file does not have the utf encoding set." + echo "ERROR: $file does not have the UTF encoding set." + echo "Add # coding: utf-8" done return 1 fi