JAL-3130 updated download_jres.sh
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 2 Mar 2022 14:38:34 +0000 (14:38 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 2 Mar 2022 14:38:34 +0000 (14:38 +0000)
utils/download_jres.sh

index 8029e82..26442ea 100755 (executable)
@@ -103,6 +103,7 @@ for FEATURE_VERSION in 8 11 17; do
             # make symbolic link with _ instead of - for install4j9
             NEWNAME=${NAME//-/_}
             echo "Linking from ${NEWNAME}.${EXT} for install4j9"
+            [ -e "${ARCHIVEDIR}/${NEWNAME}.${EXT}" ] && $RM "${ARCHIVEDIR}/${NEWNAME}.${EXT}"
             ln -s "${NAME}.${EXT}" "${ARCHIVEDIR}/${NEWNAME}.${EXT}"
             ;;
           *)