Skip to content

Commit

Permalink
Fix scripts/initMultiCloudEnv.sh coding err
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son committed Apr 5, 2024
1 parent 099bc40 commit da9f33c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/initMultiCloudEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ printf "%-100s" "-" | tr " " "-"
printf "] %d%% " $progress

while kill -0 $PID 2> /dev/null; do

current_time=$(date +%s)
elapsed=$((current_time - progress_time))
progress=$((elapsed * 100 / EXPECTED_DURATION))
Expand All @@ -61,8 +62,9 @@ while kill -0 $PID 2> /dev/null; do
printf "] %d%% " $progress

sleep 1

done
echo " Done."

output=$(<initTmp.out)
rm initTmp.out

Expand Down Expand Up @@ -95,6 +97,7 @@ while IFS= read -r line; do
done <<< "$output"

# Optionally, display failed items
echo ""
echo "Failed items:"
echo "$output" | grep "\[Failed\]" | while read line; do
echo "$line" | awk -F" " '{printf "%-50s %-10s\n", $1, $2}'
Expand Down

0 comments on commit da9f33c

Please sign in to comment.