Skip to content

Commit 6e55de9

Browse files
[DEBUG] part n+5 of many debugging
### ChangeLog: Changes in file .github/tool_checkmake.sh: export -f check_command
1 parent 1968398 commit 6e55de9

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/tool_checkmake.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
# .github/tool_checkmake.sh
6464
readonly SCRIPT_NAME="${0##*/}"
6565

66-
# local path fix-up
67-
if [[ -d "/usr/local/bin" ]] && [[ ":$PATH:" != *":/usr/local/bin:"* ]] ; then
68-
PATH="${PATH:+"$PATH:"}/usr/local/bin" ;
66+
# local build path fix-up
67+
if [[ -d "./checkmake" ]] && [[ ":$PATH:" != *":./checkmake:"* ]] ; then
68+
PATH="${PATH:+"$PATH:"}./checkmake" ;
6969
export PATH ;
7070
fi
7171

@@ -90,17 +90,6 @@ check_command sed ;
9090
check_command grep ;
9191
check_command cut ;
9292
check_command go ;
93-
# WORKAROUND: this is technical debt and will need cleaned up in the future.
94-
if command -v checkmake >/dev/null 2>&1; then
95-
check_command checkmake # it worked
96-
else
97-
check_command xargs ;
98-
check_command find ;
99-
printf "%s\n" "::notice file=${SCRIPT_FILE},line=${BASH_LINENO:-0},title=WORKAROUND::checkmake not found in expected location, trying workaround." ;
100-
find . -type f -iname "checkmake" 2>/dev/null ;
101-
find "/usr/local/bin" -type f -iname "checkmake" 2>/dev/null ;
102-
wait ;
103-
fi
10493

10594
check_command checkmake ;
10695

0 commit comments

Comments
 (0)