only add the packages path if it exists

pull/198/head
Jesse Vincent 7 years ago
parent f3a7e18805
commit a3318ea92a

@ -125,9 +125,14 @@ compile () {
local_LIBS="-libraries \"${ARDUINO_LOCAL_LIB_PATH}/libraries\""
fi
ARDUINO_PACKAGES=""
if [ -d "${HOME}/.arduino15/packages" ]; then
ARDUINO_PACKAGES="-hardware \"${HOME}/.arduino15/packages\""
fi
${ARDUINO_BUILDER} \
-compile \
-hardware "${HOME}/.arduino15/packages" \
${ARDUINO_PACKAGES} \
-hardware "${ARDUINO_PATH}/hardware" \
-hardware "${BOARD_HARDWARE_PATH}" \
${ARDUINO_TOOLS_PARAM} \

Loading…
Cancel
Save