From e9fec5e3fe4569b5c018aa6b9aa5d72572e16480 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Sun, 17 Apr 2022 17:12:52 +0200 Subject: [PATCH] define CHECK_PATH rather than leaving it open --- .github/checks/lastline.sh | 2 ++ .github/checks/spaces.sh | 2 ++ .github/checks/tabs.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/checks/lastline.sh b/.github/checks/lastline.sh index d455481d1..464f1774a 100755 --- a/.github/checks/lastline.sh +++ b/.github/checks/lastline.sh @@ -1,6 +1,8 @@ #! /bin/bash OLDCWD=`pwd` SCRIPT_PATH=`dirname $0` +CHECK_PATH=. + cd $SCRIPT_PATH/../../ nl=' diff --git a/.github/checks/spaces.sh b/.github/checks/spaces.sh index 309ba9ac1..71bdd877f 100755 --- a/.github/checks/spaces.sh +++ b/.github/checks/spaces.sh @@ -1,6 +1,8 @@ #! /bin/bash OLDCWD=`pwd` SCRIPT_PATH=`dirname $0` +CHECK_PATH=. + cd $SCRIPT_PATH/../../ FILES=`find $CHECK_PATH -type f \( \( -name \*.inc -a \! -name Makefile.inc \) -o -name \*.cfg -o -name \*.c -o -name \*.s -o -name \*.h -o -name \*.asm -o -name \*.sgml \) -print | xargs grep -l ' $' | grep -v "libwrk/" | grep -v "testwrk/"` diff --git a/.github/checks/tabs.sh b/.github/checks/tabs.sh index ad10dfe14..db2b61eac 100755 --- a/.github/checks/tabs.sh +++ b/.github/checks/tabs.sh @@ -1,6 +1,8 @@ #! /bin/bash OLDCWD=`pwd` SCRIPT_PATH=`dirname $0` +CHECK_PATH=. + cd $SCRIPT_PATH/../../ FILES=`find $CHECK_PATH -type f \( \( -name \*.inc -a \! -name Makefile.inc \) -o -name \*.cfg -o -name \*.c -o -name \*.s -o -name \*.h -o -name \*.asm -o -name \*.sgml \) -print | xargs grep -l $'\t' | grep -v "libwrk/" | grep -v "testwrk/"`