[Cosmetic Update] Reduce Countdown Timer
- Just 2 Seconds Wait Time Is Given Instead Of 10, No Change In Codes [skip ci] - [HEADS UP] Massive Update Coming In Next Month After A Looong Time, Hurrah :) Cleanup Function With Custom Retention Parameter Is Being Reworked Signed-off-by: rokibhasansagar <10854164+rokibhasansagar@users.noreply.github.com>
This commit is contained in:
parent
bcb163e267
commit
2136f0ea78
1 changed files with 6 additions and 6 deletions
12
cleanup.sh
12
cleanup.sh
|
@ -8,13 +8,13 @@ fi
|
|||
# Make Sure The Environment Is Non-Interactive
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Prepare: Just To Populate Workflow Output Window
|
||||
until [[ "${SECONDS_LEFT:=10}" = 0 ]]; do
|
||||
printf "Please wait %ss ...\n" "${SECONDS_LEFT}"
|
||||
sleep 0.5
|
||||
SECONDS_LEFT=$(echo "${SECONDS_LEFT} - 0.5" | bc)
|
||||
# 2 Second Echo, Just To Populate Workflow Output Window
|
||||
until [[ "${SECONDS_LEFT:=2.00}" == 0.00 ]]; do
|
||||
printf "\rPlease wait %ss ..." "${SECONDS_LEFT}"
|
||||
sleep 0.2498
|
||||
SECONDS_LEFT=$(printf %.2f $(echo "${SECONDS_LEFT} - 0.25" | bc))
|
||||
done
|
||||
unset SECONDS_LEFT
|
||||
unset SECONDS_LEFT && printf "\n"
|
||||
|
||||
echo "::group::Disk Space Before Cleanup"
|
||||
df -hlT /
|
||||
|
|
Loading…
Reference in a new issue