Improve formatting

This commit is contained in:
Adam Vigneaux
2015-07-26 22:37:56 -04:00
parent 14e72ea337
commit dc5f34534b

View File

@@ -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