fix missing quotes

This commit is contained in:
Asif Bacchus 2019-11-16 17:12:24 -07:00
parent e0232004f0
commit f08ffd2fa9

View File

@ -28,12 +28,12 @@ unset vmount
### functions
checkExist () {
if [ "$1" = "file" ]; then
if [ "$1" = 'file' ]; then
if [ ! -f "$2" ]; then
printf "${err}\nCannot find file: '$2'. Exiting.\n${norm}"
exit 3
fi
elif [ "$1" = "dir" ]; then
elif [ "$1" = 'dir' ]; then
if [ ! -d "$2" ]; then
printf "${err}\nCannot find directory: '$2'. Exiting.\n${norm}"
exit 3
@ -96,7 +96,7 @@ checkExist 'file' "$SSL_KEY"
checkExist 'file' "$SSL_CHAIN"
# check for DHparam if using TLS1.2
if [ "$TLS13_ONLY" = FALSE ]; then
if [ "$TLS13_ONLY" = 'FALSE' ]; then
if [ -z "$DH" ]; then
printf "${err}\nA DHparam file must be specified when using TLS 1.2. Exiting.${norm}\n"
exit 5