Skip to content

Commit

Permalink
Update run
Browse files Browse the repository at this point in the history
  • Loading branch information
dkatzz authored Oct 18, 2024
1 parent 8e310a1 commit c7abe3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cloud/shared/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ if [[ -n "$cert_file_path" ]]; then
exit 1
fi

# Check if it's a PEM file
file "$cert_file_path" | grep -q "PEM certificate"
if [[ $? -ne 0 ]]; then
echo "Certificate file '$cert_file_path' is not a PEM file."
# Check if it's a valid certificate
if file "$cert_file_path" | grep -q -E "PEM certificate|certificate"; then
echo "Certificate file '$cert_file_path' is a valid certificate."
else
echo "Certificate file '$cert_file_path' is not a valid certificate."
exit 1
fi
fi
Expand Down

0 comments on commit c7abe3c

Please sign in to comment.