Pad count string to align text

This commit is contained in:
William Wernert
2021-11-16 11:08:13 -05:00
parent d4d9032bfc
commit a2152446ea

View File

@@ -147,8 +147,9 @@ __check_url_arr() {
[[ $count != 1 ]] && sleep $retry_sleep [[ $count != 1 ]] && sleep $retry_sleep
status=$(curl -s -o /dev/null -w "%{http_code}" -L "$url" 2> /dev/null) status=$(curl -s -o /dev/null -w "%{http_code}" -L "$url" 2> /dev/null)
ret=$? ret=$?
local count_str
[[ $ret != 0 ]] && echo "$warning_prefix ($count/$retry_count) Could not reach $url, curl error code: $ret" >> "$preflight_log" printf -v count_str '%02d' "$count"
[[ $ret != 0 ]] && echo "$warning_prefix ($count_str/$retry_count) Could not reach $url, curl error code: $ret" >> "$preflight_log"
done done
if [[ $ret == 0 ]]; then if [[ $ret == 0 ]]; then