Skip to content

Commit

Permalink
build: fix omission of Default images
Browse files Browse the repository at this point in the history
Two problems:
- The script aborted when no other profiles apart from "Default" exist
- The help text was still including the omitted profile
  • Loading branch information
pktpls committed Nov 21, 2024
1 parent 60a96b3 commit 6dc5e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function usage() {
echo -n " all"
(
cd "$rootdir/tmp/$orelease/$target"
list=$(make info |& sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p')
list=$(make info |& sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p' | grep -v Default || true)
for p in $list; do
echo -n " $p"
done
Expand Down Expand Up @@ -214,7 +214,7 @@ EOF
cp "$rootdir/store/favicon.png" "$d/"

# go over all devices and build them
profilelist=$(make info | sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p' | grep -v Default)
profilelist=$(make info | sed -n 's/\(^[a-zA-Z0-9_-]*\)\:$/\1/p' | grep -v Default || true)
echo -n "building profiles:"
echo "$profilelist" | xargs echo -n " "
echo
Expand Down

0 comments on commit 6dc5e24

Please sign in to comment.