Improve formatting
This commit is contained in:
1 parent
14e72ea337
commit
dc5f34534b
1 file changed
+6
-6
@@ -162,17 +162,17 @@ EOF
|
|||||||
cd $TEMP_DIR
|
cd $TEMP_DIR
|
||||||
tar xvf - <&0
|
tar xvf - <&0
|
||||||
|
|
||||||
crt_count = $(ls -1 *.crt | wc -l)
|
CRT_FILE_COUNT=$(ls -1 ./*.crt | wc -l)
|
||||||
if [[ $crt_count -lt 1 ]]; then
|
if [[ $CRT_FILE_COUNT -lt 1 ]]; then
|
||||||
echo "Tar archive is missing .crt file" && exit 1
|
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
|
echo "Tar archive contains more than one .crt file" && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
key_count = $(ls -1 *.key | wc -l)
|
KEY_FILE_COUNT=$(ls -1 ./*.key | wc -l)
|
||||||
if [[ $key_count -lt 1 ]]; then
|
if [[ $KEY_FILE_COUNT -lt 1 ]]; then
|
||||||
echo "Tar archive is missing .key file" && exit 1
|
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
|
echo "Tar archive contains more than one .key file" && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user