Skip to content

Commit 5947435

Browse files
committed
Fail install_ide if the application folder was not set
1 parent b45c125 commit 5947435

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arduino-ci-script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ function install_ide()
188188
determine_ide_version_extremes "$INSTALLED_IDE_VERSION_LIST_ARRAY"
189189
NEWEST_INSTALLED_IDE_VERSION="$ARDUINO_CI_SCRIPT_DETERMINED_NEWEST_IDE_VERSION"
190190

191+
if [[ "$ARDUINO_CI_SCRIPT_APPLICATION_FOLDER" == "" ]]; then
192+
echo "ERROR: Application folder was not set. Please use the set_application_folder function to define the location of the application folder."
193+
return "$ARDUINO_CI_SCRIPT_FAILURE_EXIT_STATUS"
194+
fi
191195
create_folder "$ARDUINO_CI_SCRIPT_APPLICATION_FOLDER"
192196

193197
# This runs the command contained in the $INSTALLED_IDE_VERSION_LIST_ARRAY string, thus declaring the array locally as $IDEversionListArray. This must be done in any function that uses the array

0 commit comments

Comments
 (0)