Skip to content

Commit

Permalink
scripts/assemble_firmware: devicepackages: only consider boards start…
Browse files Browse the repository at this point in the history
…ing at begin of line

This allows to comment out lines.
  • Loading branch information
SvenRoederer committed Jul 18, 2021
1 parent f9e230d commit b80e691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/assemble_firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ for profile in $PROFILES ; do
profile="$(echo $profile | cut -d':' -f 1)"

if [ -e "${PKGLIST_DIR}/profile-packages.txt" ] ; then
model_packages="$(grep $profile ${PKGLIST_DIR}/profile-packages.txt | cut -d':' -s -f 2 | tr -t '\n' ' ')"
model_packages="$(grep ^$profile ${PKGLIST_DIR}/profile-packages.txt | cut -d':' -s -f 2 | tr -t '\n' ' ')"
# this is compatibility for WeimarNetz-stype definitons
if [ -z "${model_packages}" ]; then
model_packages="$(grep $profile ${PKGLIST_DIR}/profile-packages.txt | cut -d';' -s -f 2| tr -t '\n' ' ')"
model_packages="$(grep ^$profile ${PKGLIST_DIR}/profile-packages.txt | cut -d';' -s -f 2| tr -t '\n' ' ')"
fi
info "we include these extra packages: $model_packages"
fi
Expand Down

0 comments on commit b80e691

Please sign in to comment.