Skip to content

Commit

Permalink
Update cmd.sh user_version.h sed command
Browse files Browse the repository at this point in the history
in light of changes made as part of
nodemcu/nodemcu-firmware#2269
  • Loading branch information
nwf committed Mar 13, 2018
1 parent 8de80de commit 25e4ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ cd /opt/nodemcu-firmware
# EXTRA_CCFLAGS="-DBUILD_DATE=... AND -DNODE_VERSION=..." to make turned into an escaping/expanding nightmare for which
# I never found a good solution
if [ "$CAN_MODIFY_VERSION" = true ]; then
sed -i 's/\(NodeMCU [^"]*\)/\1 built with Docker provided by frightanic.com\\n\\tbranch: '"$BRANCH"'\\n\\tcommit: '"$COMMIT_ID"'\\n\\tSSL: '"$SSL"'\\n/g' app/include/user_version.h
sed -i '/#define NODE_VERSION[[:space:]]/ s/$/ " built with Docker provided by frightanic.com\\n\\tbranch: '"$BRANCH"'\\n\\tcommit: '"$COMMIT_ID"'\\n\\tSSL: '"$SSL"'\\n"/g' app/include/user_version.h
sed -i 's/"unspecified"/"created on '"$BUILD_DATE"'\\n"/g' app/include/user_version.h
fi

Expand Down

0 comments on commit 25e4ee9

Please sign in to comment.