File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 59
59
id : find-executable-files
60
60
working-directory : ${{github.workspace}}
61
61
run : |
62
- chmod +x ./CIUtils/find-executable .sh
62
+ find ./CIUtils/ -name "* .sh" -exec chmod +x {} \;
63
63
EXEC_FILES=$(./CIUtils/find-executable.sh "workspace/")
64
64
echo "Found executable and dynamic library files: $EXEC_FILES"
65
65
echo "exec_files=$EXEC_FILES" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Get the directory of the current script
4
+ script_dir=$( dirname " $0 " )
5
+
3
6
# Detect the operating system
4
7
os_type=$( uname)
5
8
6
9
# Execute the corresponding script based on the operating system
7
10
case " $os_type " in
8
11
Linux)
9
- echo $( . /find-elf.sh " $1 " )
12
+ echo $( " $script_dir /find-elf.sh" " $1 " )
10
13
;;
11
14
Darwin)
12
- echo $( . /find-macho.sh " $1 " )
15
+ echo $( " $script_dir /find-macho.sh" " $1 " )
13
16
;;
14
17
* )
15
18
echo " Unsupported OS: $os_type "
You can’t perform that action at this time.
0 commit comments