Skip to content

Commit fb5661e

Browse files
committed
Correctly update IDE symlink
Because the ln command in install_ide_version was previously missing the --no-dereference option, only the first IDE version used (which is the newest IDE version installed) was ever used in any of the following processes.
1 parent 0a77a96 commit fb5661e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ci-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function install_ide_version()
434434
local -r IDEversion="$1"
435435

436436
# Create a symbolic link so that the Arduino IDE can always be referenced from the same path no matter which version is being used.
437-
ln --symbolic --force $ARDUINO_CI_SCRIPT_VERBOSITY_OPTION "${ARDUINO_CI_SCRIPT_APPLICATION_FOLDER}/arduino-${IDEversion}" "${ARDUINO_CI_SCRIPT_APPLICATION_FOLDER}/${ARDUINO_CI_SCRIPT_IDE_INSTALLATION_FOLDER}"
437+
ln --symbolic --force --no-dereference $ARDUINO_CI_SCRIPT_VERBOSITY_OPTION "${ARDUINO_CI_SCRIPT_APPLICATION_FOLDER}/arduino-${IDEversion}" "${ARDUINO_CI_SCRIPT_APPLICATION_FOLDER}/${ARDUINO_CI_SCRIPT_IDE_INSTALLATION_FOLDER}"
438438
}
439439

440440

0 commit comments

Comments
 (0)