diff --git a/boards/scumaker/pilotpi/cmake/upload.cmake b/boards/scumaker/pilotpi/cmake/upload.cmake index d9a75e97ed..f3ff69c4cb 100644 --- a/boards/scumaker/pilotpi/cmake/upload.cmake +++ b/boards/scumaker/pilotpi/cmake/upload.cmake @@ -46,7 +46,7 @@ endif() add_custom_target(upload COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/rpi/pilotpi*.config ${PX4_BINARY_DIR}/etc # source - \$\{AUTOPILOT_USER\}@\$\{AUTOPILOT_HOST\}:/home/\$\{AUTOPILOT_USER\}/px4 # destination + "${AUTOPILOT_USER}@${AUTOPILOT_HOST}:/home/${AUTOPILOT_USER}/px4" # destination DEPENDS px4 COMMENT "uploading px4" USES_TERMINAL