Skip to content
Snippets Groups Projects
Commit b9c3e7fa authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

odstranena nadbytecna kontrola promenne

parent 55aec2d0
No related branches found
No related tags found
No related merge requests found
...@@ -132,30 +132,19 @@ obtain_package_version() ...@@ -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() warden_dir_chck()
{ {
echo -n "Checking warden client directory ... " echo -n "Checking warden client directory ... "
if [ ! -d $client_path ]; then if [ ! -d $client_path ]; then
echo "FAILED!" echo "FAILED!"
ls $prefix ls $client_path
exit 1 exit 1
else else
echo "OK" echo "OK"
fi fi
} }
backup() backup()
{ {
echo -n "Backing-up warden client directory ... " echo -n "Backing-up warden client directory ... "
...@@ -168,6 +157,7 @@ backup() ...@@ -168,6 +157,7 @@ backup()
fi fi
} }
uninstall_warden_client() uninstall_warden_client()
{ {
echo -n "Uninstalling $package_version package ... " echo -n "Uninstalling $package_version package ... "
...@@ -219,9 +209,6 @@ obtain_package_version ...@@ -219,9 +209,6 @@ obtain_package_version
echo echo
echo "------------------------- Uninstallation process --------------------------------" echo "------------------------- Uninstallation process --------------------------------"
# check if $prefix directory exist
uninstallation_dir_chck
# check if $prefix/warden-client directory exist # check if $prefix/warden-client directory exist
warden_dir_chck warden_dir_chck
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment