Improve formatting
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user