From bf0b3e39e1b4aa3eee99ccecfd3e4a151ce7fffb Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 23 Aug 2022 15:46:35 +0200 Subject: [PATCH] fix: printf with -f at the beginning of a format string is recognized as an option Signed-off-by: Frederic Pillon --- system/extras/prebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/extras/prebuild.sh b/system/extras/prebuild.sh index 6c00ee35ec..91f878c66f 100755 --- a/system/extras/prebuild.sh +++ b/system/extras/prebuild.sh @@ -14,7 +14,7 @@ fi # the board platform folder to a relative path by using '.'. # (i.e. the folder containing boards.txt) if [ ! -f "$BUILD_SOURCE_PATH/build_opt.h" ]; then - printf '-fmacro-prefix-map="%s"=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" > "$BUILD_PATH/sketch/build.opt" + printf '\n-fmacro-prefix-map="%s"=.' "${BOARD_PLATFORM_PATH//\\/\\\\}" > "$BUILD_PATH/sketch/build.opt" else # Else copy the build_opt.h as build.opt # Workaround to the header file preprocessing done by arduino-cli