mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
add missing & around value
This commit is contained in:
+1
-1
@@ -8,4 +8,4 @@ GLOBAL_H=${WORKDIR}/ESPEasy-Globals.h
|
||||
|
||||
# update BUILD_GIT on branch checkout
|
||||
[[ $3 == 1 && -f ${CUSTOM_H} ]] && \
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 $(git log -1 --pretty=format:%h HEAD)/" ${CUSTOM_H}
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 \"$(git log -1 --pretty=format:%h HEAD)\"/" ${CUSTOM_H}
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ CUSTOM_H=${WORKDIR}/Custom.h
|
||||
GLOBAL_H=${WORKDIR}/ESPEasy-Globals.h
|
||||
|
||||
[[ -f ${CUSTOM_H} ]] && \
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 $(git log -1 --pretty=format:%h HEAD)/" ${CUSTOM_H}
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 \"$(git log -1 --pretty=format:%h HEAD)\"/" ${CUSTOM_H}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ GLOBAL_H=${WORKDIR}/ESPEasy-Globals.h
|
||||
# we expect that ${CUSTOM_H} always contains a "#define BUILD_GIT" macro
|
||||
[[ -f ${CUSTOM_H} ]] && (
|
||||
echo "post_merge: change BUILD_GIT"
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 $(git log -1 --pretty=format:%h HEAD)/" ${CUSTOM_H}
|
||||
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 \"$(git log -1 --pretty=format:%h HEAD)\"/" ${CUSTOM_H}
|
||||
)
|
||||
|
||||
# uncomment if you don't want to use the Custom.h include
|
||||
|
||||
Reference in New Issue
Block a user