From d805a36cc67fa38d11eda2f09f661ba21c6add70 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 10 Jul 2007 08:00:47 +0000
Subject: [PATCH] fix for issue #1865 (upgrade -V error) In case on -V option, BuildExtractor will exit with a pre-defined return code defined in QuickSetupCli.java (let's say 50). Script will test this specific return value to check if the non-null return code is an error. In case of none null return code, the upgradeLauncher will not be called.
---
opends/resource/uninstall | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opends/resource/uninstall b/opends/resource/uninstall
index 8649f51..f5834d0 100644
--- a/opends/resource/uninstall
+++ b/opends/resource/uninstall
@@ -118,3 +118,12 @@
# Launch the uninstall process.
"${JAVA_BIN}" org.opends.quicksetup.uninstaller.UninstallLauncher "${@}"
+
+RETURN_CODE=$?
+if test ${RETURN_CODE} -eq 50
+then
+ # Version info was on requested
+ exit 0
+else
+ exit ${RETURN_CODE}
+fi
\ No newline at end of file
--
Gitblit v1.10.0