From dc5f34534b05ce11acd195cf85cce895f1cbe6d7 Mon Sep 17 00:00:00 2001 From: Adam Vigneaux Date: Sun, 26 Jul 2015 22:37:56 -0400 Subject: [PATCH] Improve formatting --- plugins/nginx-vhosts/commands | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/nginx-vhosts/commands b/plugins/nginx-vhosts/commands index 8e221affd..0d9a53125 100755 --- a/plugins/nginx-vhosts/commands +++ b/plugins/nginx-vhosts/commands @@ -162,17 +162,17 @@ EOF cd $TEMP_DIR tar xvf - <&0 - crt_count = $(ls -1 *.crt | wc -l) - if [[ $crt_count -lt 1 ]]; then + CRT_FILE_COUNT=$(ls -1 ./*.crt | wc -l) + if [[ $CRT_FILE_COUNT -lt 1 ]]; then echo "Tar archive is missing .crt file" && exit 1 - elif [[ $crt_count -gt 1 ]]; then + elif [[ $CRT_FILE_COUNT -gt 1 ]]; then echo "Tar archive contains more than one .crt file" && exit 1 fi - key_count = $(ls -1 *.key | wc -l) - if [[ $key_count -lt 1 ]]; then + KEY_FILE_COUNT=$(ls -1 ./*.key | wc -l) + if [[ $KEY_FILE_COUNT -lt 1 ]]; then echo "Tar archive is missing .key file" && exit 1 - elif [[ $key_count -gt 1 ]]; then + elif [[ $KEY_FILE_COUNT -gt 1 ]]; then echo "Tar archive contains more than one .key file" && exit 1 fi