JAL-3631 Small corrections
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 29 Jul 2024 18:43:25 +0000 (19:43 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 29 Jul 2024 18:43:25 +0000 (19:43 +0100)
utils/install4j/default.vmoptions
utils/install4j/macos-install-jalview.sh

index 4b483b0..9989aa7 100644 (file)
@@ -5,6 +5,7 @@
 # -include-options [path to other .vmoption file]
 
 # Jalview specific options below
+
 # Jalview options added by __INSTALLERFILENAME__ at __INSTALLDATETIME__
 # 
 # Uncomment the following line to disable user-space updates
index 8cb7980..eba1e2b 100755 (executable)
@@ -320,7 +320,7 @@ if [ "${DISABLEGLOBALPATH}" != 1 ]; then
   LONGHASH=$( printf %s "${APPLICATIONFOLDER}/${APPNAME}/Contents/Resources/app" | shasum -a 256 -b )
   HASH=${LONGHASH:0:8}
   NAME=${APPNAME%.app}
-  US_NAME=${APPNAME// /_}
+  US_NAME=${NAME// /_}
   PATHFILE="/etc/paths.d/${US_NAME}-${HASH}"
   echo "${APPLICATIONFOLDER}/${APPNAME}/Contents/MacOS" > "${PATHFILE}" || addwarning "Possible problem writing path file '${PATHFILE}'" 15
 fi