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

provedena revize kodu

parent d4647723
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,7 @@ err()
{
echo "FAILED!"
cat $err
rm -rf $err
echo
echo "Installation FAILED!!!"
exit 1
......@@ -119,7 +120,7 @@ params_chck()
{
if [ -z $prefix ]; then
prefix=/opt
echo "Warning: parameter -d <directory> is not set - default installation directory is /opt!"
echo "Warning: parameter -d <directory> is not set - default installation directory is $prefix!"
fi
if [ -z $user ]; then
echo "Parameter -u <user> is not set!"
......@@ -148,6 +149,7 @@ perl_chck()
echo "OK"
else
echo "FAILED!"
echo "Error: Perl interpreter is not installed!"
exit 1
fi
}
......@@ -184,13 +186,13 @@ installation_dir_chck()
make_warden_dir()
{
echo -n "Making warden client directory ... "
cp CHANGELOG INSTALL LICENSE README "$client_path/doc"
cp -R ./warden-client $prefix 2> $err; ret_val=`echo $?`
if [ $ret_val -eq 0 ]; then
echo "OK"
else
err_clean
fi
cp -u CHANGELOG INSTALL LICENSE README "$client_path/doc"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment