diff --git a/compile.sh b/compile.sh index 373786e..11f55ec 100755 --- a/compile.sh +++ b/compile.sh @@ -1,5 +1,3 @@ -echo -n 'const char * sketchVersion = "' > gitTagVersion.h -git --no-pager describe --tags --always --dirty | tr --delete '\n' >>gitTagVersion.h -echo -n '";' >> gitTagVersion.h +echo "const char * sketchVersion = \"$(git describe --tags --always --dirty)\";" > gitTagVersion.h ~/arduino-1.8.5/arduino --verify test.ino rm gitTagVersion.h diff --git a/flash.sh b/flash.sh index 4041286..c385d4d 100755 --- a/flash.sh +++ b/flash.sh @@ -1,5 +1,3 @@ -echo -n 'const char * sketchVersion = "' > gitTagVersion.h -git --no-pager describe --tags --always --dirty | tr --delete '\n' >>gitTagVersion.h -echo -n '";' >> gitTagVersion.h +echo "const char * sketchVersion = \"$(git describe --tags --always --dirty)\";" > gitTagVersion.h ~/arduino-1.8.5/arduino --upload test.ino --pref custom_DebugLevel=esp32_none rm gitTagVersion.h