</property>
<property name="variableName" type="string">unixBinDir</property>
</serializedBean>
- <condition>context.getBooleanVariable("makeSymbolicLink")
-&& (context.getVariable("unixBinDir") == null || context.getVariable("unixBinDir").toString().length() == 0)</condition>
+ <condition>if (!context.getBooleanVariable("makeSymbolicLink")) {
+ return false;
+}
+String unixBinDir = (String) context.getVariable("unixBinDir");
+if (unixBinDir != null && unixBinDir.length() > 0) {
+ if (unixBinDir.startsWith("~/")) {
+ unixBinDir = (String)context.getVariable("sys.userHome") + unixBinDir.substring(1);
+ context.setVariable("unixBinDir", unixBinDir);
+ }
+ return false;
+}
+return true;</condition>
</action>
<action name="USERSPACE: Set MacOSDir (macOS)" id="2745" beanClass="com.install4j.runtime.beans.actions.control.SetVariableAction" rollbackBarrierExitCode="0">
<serializedBean>