@@ -9,19 +9,19 @@ elif [[ $LIB_CHANGED == 'true' ]]; then
9
9
echo " Libraries changed. Building only affected sketches."
10
10
if [[ $NETWORKING_CHANGED == ' true' ]]; then
11
11
echo " Networking libraries changed. Building networking related sketches."
12
- networking_sketches=$( find libraries/WiFi -name * .ino -printf ' %f ' )
13
- networking_sketches+=" $( find libraries/Ethernet -name * .ino -printf ' %f ' ) "
14
- networking_sketches+=" $( find libraries/PPP -name * .ino -printf ' %f ' ) "
15
- networking_sketches+=" $( find libraries/NetworkClientSecure -name * .ino -printf ' %f ' ) "
16
- networking_sketches+=" $( find libraries/WebServer -name * .ino -printf ' %f ' ) "
12
+ networking_sketches=" $( find libraries/WiFi -name * .ino) "
13
+ networking_sketches+=" $( find libraries/Ethernet -name * .ino) "
14
+ networking_sketches+=" $( find libraries/PPP -name * .ino) "
15
+ networking_sketches+=" $( find libraries/NetworkClientSecure -name * .ino) "
16
+ networking_sketches+=" $( find libraries/WebServer -name * .ino) "
17
17
fi
18
18
if [[ $FS_CHANGED == ' true' ]]; then
19
19
echo " FS libraries changed. Building FS related sketches."
20
- fs_sketches=$( find libraries/SD -name * .ino -printf ' %f ' )
21
- fs_sketches+=" $( find libraries/SD_MMC -name * .ino -printf ' %f ' ) "
22
- fs_sketches+=" $( find libraries/SPIFFS -name * .ino -printf ' %f ' ) "
23
- fs_sketches+=" $( find libraries/LittleFS -name * .ino -printf ' %f ' ) "
24
- fs_sketches+=" $( find libraries/FFat -name * .ino -printf ' %f ' ) "
20
+ fs_sketches=" $( find libraries/SD -name * .ino) "
21
+ fs_sketches+=" $( find libraries/SD_MMC -name * .ino) "
22
+ fs_sketches+=" $( find libraries/SPIFFS -name * .ino) "
23
+ fs_sketches+=" $( find libraries/LittleFS -name * .ino) "
24
+ fs_sketches+=" $( find libraries/FFat -name * .ino) "
25
25
fi
26
26
sketches=" $networking_sketches $fs_sketches "
27
27
for file in $LIB_FILES ; do
@@ -34,15 +34,15 @@ elif [[ $LIB_CHANGED == 'true' ]]; then
34
34
echo " Library src file found: $file "
35
35
lib=$( dirname $( dirname $file ) )
36
36
if [[ -d $lib /examples ]]; then
37
- lib_sketches=$( find $lib /examples -name * .ino -printf ' %f ' )
38
- sketches+=" $lib_sketches "
37
+ lib_sketches=$( find $lib /examples -name * .ino)
38
+ sketches+=" $lib_sketches "
39
39
echo " Library sketches: $lib_sketches "
40
40
fi
41
41
else
42
42
# If file is in a example folder but it is not a sketch, find all sketches in the current directory
43
43
echo " File in example folder found: $file "
44
- sketch=$( find $( dirname $file ) -name * .ino -printf ' %f ' )
45
- sketches+=" $sketch "
44
+ sketch=$( find $( dirname $file ) -name * .ino)
45
+ sketches+=" $sketch "
46
46
echo " Sketch in example folder: $sketch "
47
47
fi
48
48
echo " "
@@ -57,7 +57,8 @@ if [[ -n $sketches ]]; then
57
57
chunks_count=$(( chunks_count+ 1 ))
58
58
done
59
59
echo " Number of sketches found: $chunks_count "
60
- echo " Sketches: $sketches "
60
+ echo " Sketches:"
61
+ echo " $sketches "
61
62
62
63
if [[ $chunks_count -gt $MAX_CHUNKS ]]; then
63
64
echo " More sketches than the allowed number of chunks found. Limiting to $MAX_CHUNKS chunks."
0 commit comments