Bläddra i källkod

Fix uninstaller not properly detecting running DMDirc instance.

Fixes issue 1660


git-svn-id: http://svn.dmdirc.com/trunk@4576 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 år sedan
förälder
incheckning
756f66da8e

Binär
launcher/windows/DMDirc.exe Visa fil


Binär
launcher/windows/DMDircUpdater.exe Visa fil


+ 2
- 2
src/com/dmdirc/installer/LinuxInstaller.java Visa fil

@@ -235,8 +235,8 @@ public class LinuxInstaller extends Installer {
235 235
 					writer.println("	exit 1;");
236 236
 					writer.println("fi");
237 237
 					
238
-					writer.println("RUNNING=\"${JAVA} -jar " + location + "/DMDirc.jar -e -v 1>/dev/null | grep 'Unable to connect'\"");
239
-					writer.println("if [ \"${RUNNING}\" != \"\" ]; then");
238
+					writer.println("RUNNING=`${JAVA} -jar " + location + "/DMDirc.jar -e -v 1>/dev/null | grep 'Unable to connect'`");
239
+					writer.println("if [ \"${RUNNING}\" = \"\" ]; then");
240 240
 					writer.println("	errordialog \"Uninstaller\" \"Uninstall Aborted - DMDirc is still running.\nPlease close DMDirc before continuing\"");
241 241
 					writer.println("	echo \"Uninstall Aborted - DMDirc already running.\"");
242 242
 					writer.println("	exit 1;");

Laddar…
Avbryt
Spara