From b9c3e7fa144f5fcb13b36e39ff6bb5d70b5b7148 Mon Sep 17 00:00:00 2001
From: Tomas Plesnik <plesnik@ics.muni.cz>
Date: Thu, 2 Feb 2012 11:02:37 +0100
Subject: [PATCH] odstranena nadbytecna kontrola promenne

---
 src/warden-client/sh/uninstall.sh | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

diff --git a/src/warden-client/sh/uninstall.sh b/src/warden-client/sh/uninstall.sh
index d70f01e..ac4832f 100755
--- a/src/warden-client/sh/uninstall.sh
+++ b/src/warden-client/sh/uninstall.sh
@@ -132,30 +132,19 @@ obtain_package_version()
 }
 
 
-uninstallation_dir_chck()
-{
-	echo -n "Checking uninstallation directory ... "
-	if [ ! -d $prefix ]; then
-		echo "FAILED!"
-		ls $prefix
-		exit 1
-	else
-		echo "OK"
-	fi
-}
-
 warden_dir_chck()
 {
 	echo -n "Checking warden client directory ... "
 	if [ ! -d $client_path ]; then
 		echo "FAILED!"
-		ls $prefix
+		ls $client_path
 		exit 1
 	else
 		echo "OK"
 	fi
 }
 
+
 backup()
 {
 	echo -n "Backing-up warden client directory ... "
@@ -168,6 +157,7 @@ backup()
 	fi
 }
 
+
 uninstall_warden_client()
 {
 	echo -n "Uninstalling $package_version package ... "
@@ -219,9 +209,6 @@ obtain_package_version
 echo
 echo "------------------------- Uninstallation process --------------------------------"
 
-# check if $prefix directory exist
-uninstallation_dir_chck
-
 # check if $prefix/warden-client directory exist
 warden_dir_chck
 
-- 
GitLab