Skip to content

Commit

Permalink
Merge pull request #317 from tadeubas/integrated_changes
Browse files Browse the repository at this point in the history
Fix build error when files with Windows line ending CRLF (\r\n)
  • Loading branch information
odudex authored Feb 17, 2024
2 parents 2fb80fe + 9eb3aad commit 0bd6d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ FROM build-firmware AS build
ARG DEVICE="maixpy_m5stickv"
WORKDIR /src/firmware/Kboot/build
RUN cp /src/firmware/MaixPy/projects/"${DEVICE}"/build/firmware.bin .
RUN sed -i -e 's/\r$//' *.sh
RUN ./CLEAN.sh && ./BUILD.sh
2 changes: 1 addition & 1 deletion krux
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ "$1" == "build" ]; then
if [ -z "$device" ]; then
echo "Missing device"
else
declare $(grep -m 1 version pyproject.toml | sed 's/ *= */=/g' | sed 's/"//g')
declare $(grep -m 1 version pyproject.toml | sed 's/ *= */=/g' | sed 's/"//g' | sed 's/\r//g')
sed -i -- 's/VERSION = ".*"/VERSION = "'"$version"'"/g' src/krux/metadata.py

mkdir -p build
Expand Down

0 comments on commit 0bd6d2d

Please sign in to comment.