From f8f88e84b0479a91565af215311c1627946062c1 Mon Sep 17 00:00:00 2001
From: Tomas Plesnik <plesnik@ics.muni.cz>
Date: Thu, 18 Dec 2014 11:27:56 +0100
Subject: [PATCH] bugfix: mazani skriptu uninstall.sh probihalo v cyklu

---
 src/warden-server/sh/install.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/warden-server/sh/install.sh b/src/warden-server/sh/install.sh
index a64c639..220ff97 100755
--- a/src/warden-server/sh/install.sh
+++ b/src/warden-server/sh/install.sh
@@ -56,12 +56,11 @@ errClean()
 	echo " -> Uninstalling server package ..."
 	for file in $(<"$manifest")
 	do
-		directory="${file%/*}"
 		rm -f "${basedir}/$file"
+		directory="${file%/*}"
 		rmdir --ignore-fail-on-non-empty "${basedir}/$directory"
-		rm -f "${basedir}/uninstall.sh"
-
 	done
+	rm -f "${basedir}/uninstall.sh"
 	cat "$err"
 	rm -f "$err"
 	echo
-- 
GitLab