[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:
rokibhasansagar 2023-02-25 18:32:12 +06:00
parent bcb163e267
commit 2136f0ea78
No known key found for this signature in database
GPG key ID: 2A43163956D6C2A7

View file

@ -8,13 +8,13 @@ fi
# Make Sure The Environment Is Non-Interactive # Make Sure The Environment Is Non-Interactive
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
# Prepare: Just To Populate Workflow Output Window # 2 Second Echo, Just To Populate Workflow Output Window
until [[ "${SECONDS_LEFT:=10}" = 0 ]]; do until [[ "${SECONDS_LEFT:=2.00}" == 0.00 ]]; do
printf "Please wait %ss ...\n" "${SECONDS_LEFT}" printf "\rPlease wait %ss ..." "${SECONDS_LEFT}"
sleep 0.5 sleep 0.2498
SECONDS_LEFT=$(echo "${SECONDS_LEFT} - 0.5" | bc) SECONDS_LEFT=$(printf %.2f $(echo "${SECONDS_LEFT} - 0.25" | bc))
done done
unset SECONDS_LEFT unset SECONDS_LEFT && printf "\n"
echo "::group::Disk Space Before Cleanup" echo "::group::Disk Space Before Cleanup"
df -hlT / df -hlT /