Skip to content

Commit

Permalink
Merge pull request #1 from lesamouraipourpre/patch-1
Browse files Browse the repository at this point in the history
Only use package_folder_prefix if there any subpackages
  • Loading branch information
FoamyGuy authored Jul 2, 2021
2 parents 94307ee + da3d0bc commit 0602e62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ gawk -F '\n' '{ match($1, /(drivers|helpers)\/(.+)\/(.+)\:/, arr) ; if (length(a
gawk '{ trimmed = substr($0, 1, length($0) - 2) ; print "\"" trimmed "\"" }'
)

circuitpython-build-bundles --filename_prefix circuitpython-org-bundle --library_location libraries --library_depth 2 --package_folder_prefix "$P"
if [ -z "$P" ]; then
P=""
else
P="--package_folder_prefix $P"
fi

circuitpython-build-bundles --filename_prefix circuitpython-org-bundle --library_location libraries --library_depth 2 "$P"

0 comments on commit 0602e62

Please sign in to comment.