Skip to content

Commit 0837138

Browse files
committed
fix examples script
1 parent 240ce23 commit 0837138

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/ci/emscripten/examples_to_build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ for folder in "${folders[@]}"; do
6969
cp -r $thumb_gif "$out_folder/$parent_folder_name/$folder_name/"
7070
outThumbs+="$thumb_gif,"
7171
elif [ -e "$thumb_jpg" ]; then
72-
cp -r $thumb_jpg "$out_folder/$parent_folder_name/$folder_name/"
72+
cp -r $thumb_jpg "$out_folder/$parent_folder_name/$folder_name/"
7373
outThumbs+="$thumb_jpg,"
7474
else
7575
#try any image file
7676
first_file=$(find . -maxdepth 1 \( -name "*.gif" -o -name "*.png" -o -name "*.jpg" \) -print -quit)
7777
# Check if a file was found
7878
if [ -n "$first_file" ]; then
79+
cp -r $first_file "$out_folder/$parent_folder_name/$folder_name/"
7980
outThumbs+="$first_file,"
8081
else
8182
#default file
@@ -100,6 +101,7 @@ outThumbs=${outThumbs%,}
100101

101102
htmlFile="$out_folder/index.html"
102103

104+
echo "outThumbs is $outThumbs"
103105
echo "outPaths is $outPaths"
104106
echo "html is $htmlFile"
105107

0 commit comments

Comments
 (0)