mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Pad count string to align text
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user