Skip to content

Commit

Permalink
Minor script update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rodier committed Feb 13, 2024
1 parent e246552 commit 8309255
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/certificates/files/cert-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ for ca_file in $cert_files; do
status=$("$status_script_path" status 2>&1)
fi

# Create a small progress bar
width=$((valid_days / 9))
bar=$(echo "##########" | head -c "$width")
# Create a small progress bar for visibility.
# The maximum is 90 days.
width=$(((1+valid_days) / 9))
bar=$(echo "==========" | head -c "$width")
bar=$(printf "%02d [%-10s]" "$valid_days" "$bar")

if [ "$key_modulus" != "$crt_modulus" ]; then
Expand Down

0 comments on commit 8309255

Please sign in to comment.