Skip to content

Commit 9ccb895

Browse files
committed
https://github.com/arduino/arduino-cli/issues/1122#issuecomment-767661706
1 parent 53e5688 commit 9ccb895

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: tests/common.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ function build_sketches()
8080
if [ -e $cache_dir/core/*.a ]; then
8181
# We need to preserve the build.options.json file and replace the last .ino
8282
# with this sketch's ino file, or builder will throw everything away.
83-
jq '."sketchLocation" = "'$sketch'"' $build_dir/build.options.json > $build_dir/build.options.json.tmp
84-
mv $build_dir/build.options.json.tmp $build_dir/build.options.json
83+
sed -i "s,^.*sketchLocation.*$, \"sketchLocation\": \"$sketch\"\,,g" $build_dir/build.options.json
8584
# Set the time of the cached core.a file to the future so the GIT header
8685
# we regen won't cause the builder to throw it out and rebuild from scratch.
8786
touch -d 'now + 1 day' $cache_dir/core/*.a

0 commit comments

Comments
 (0)