Skip to content

Commit 276c514

Browse files
committed
Allow JRI reinstall/upgrade to same major version
1 parent a3edd52 commit 276c514

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

modules/java.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
# Install the latest EV3 JRI bundle
55
function java_install_bundle() {
66
if [ -d "$JRI_PATH_NEW" ]; then
7-
echo "Sorry, we detected a previous installation in path: /opt/jri-10-build-050"
7+
echo "Detected a previous installation in path: $JRI_PATH_NEW"
8+
echo "Deleting and reinstalling."
89
echo
9-
exit 1
10+
rm -rf "$JRI_PATH_NEW"
1011
fi
1112

1213
if [ ! -f "$JRI_ZIP" ]; then

0 commit comments

Comments
 (0)