From 95a3f1eeec598faf0164e9efc9b1dd318912b5b2 Mon Sep 17 00:00:00 2001 From: Tomas Plesnik <plesnik@ics.muni.cz> Date: Thu, 2 Feb 2012 11:04:28 +0100 Subject: [PATCH] odstranena nadbytecna kontrola promenne --- src/warden-client/sh/install.sh | 16 ---------------- src/warden-client/sh/update.sh | 15 +-------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/src/warden-client/sh/install.sh b/src/warden-client/sh/install.sh index af7fe7e..237dab3 100755 --- a/src/warden-client/sh/install.sh +++ b/src/warden-client/sh/install.sh @@ -181,19 +181,6 @@ modules_chck() } -installation_dir_chck() -{ - echo -n "Checking installation directory ... " - if [ ! -d $prefix ]; then - echo "FAILED!" - ls $prefix - exit 1 - else - echo "OK" - fi -} - - make_warden_dir() { echo -n "Creating warden client directory ... " @@ -346,9 +333,6 @@ modules_chck echo echo "------------------------- Installation process --------------------------" -# check installation directory -installation_dir_chck - # make warden client directory make_warden_dir diff --git a/src/warden-client/sh/update.sh b/src/warden-client/sh/update.sh index 0009c7e..84b4efd 100755 --- a/src/warden-client/sh/update.sh +++ b/src/warden-client/sh/update.sh @@ -165,25 +165,12 @@ modules_chck() } -installation_dir_chck() -{ - echo -n "Checking installation 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" -- GitLab