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

pridany uvozovky k promennym

parent 9e18463a
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ paramsChck()
oldPackageChck()
{
echo -n "Checking previous Warden server installation ... "
old_package_version_file=$(find $basedir -name package_version)
old_package_version_file=$(find "$basedir" -name package_version)
if [ -f "$old_package_version_file" ]; then
echo "FAILED!"
echo
......@@ -198,8 +198,8 @@ while getopts "d:k:c:a:s:Vh" options; do
done
# remove last char (slash) from name of directories
[[ $basedir == */ ]] && basedir="${basedir%?}"
[[ $symbin == */ ]] && symbin="${symbin%?}"
[[ "$basedir" == */ ]] && basedir="${basedir%?}"
[[ "$symbin" == */ ]] && symbin="${symbin%?}"
# params test
paramsChck
......@@ -222,13 +222,13 @@ apache_conf_tmpl="${dirname}/etc/warden-apache.conf.tmpl"
watchdog_conf_tmpl="${dirname}/etc/warden-watchdog.conf.tmpl"
package_version=$(<"${dirname}/etc/package_version")
manifest="${dirname}/doc/MANIFEST"
manifest="${dirname}/doc/MANIFEST"
echo
echo "----------------------- Checking for Dependencies -----------------------"
# check if warden-server is installed
[[ ! -z $basedir ]] && [[ -d $basedir ]] && oldPackageChck
[[ ! -z "$basedir" ]] && [[ -d "$basedir" ]] && oldPackageChck
# Perl interpreter test
perlChck
......@@ -269,8 +269,8 @@ doTemplate \
# create MANIFEST file
createManifest
# crate symlinks from warden server bin to user path if -s option is set
[[ ! -z $symbin ]] && [[ -d $symbin ]] && [[ -w $symbin ]] && createSymlinks
# crate symlinks from warden server bin to user path (if -s option is set)
[[ ! -z "$symbin" ]] && [[ -d "$symbin" ]] && [[ -w "$symbin" ]] && createSymlinks
echo
echo "Please check configuration files:"
......
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