diff options
| author | martial <msimon_fr@hotmail.com> | 2024-11-28 17:10:57 +0100 |
|---|---|---|
| committer | martial <msimon_fr@hotmail.com> | 2024-11-28 17:10:57 +0100 |
| commit | 6209b4a014f27c7c3bf25154ee76fad61eee6152 (patch) | |
| tree | 68f0ffa76249c4e66531be34a40e6b4611d0b06a | |
| parent | 4d6c4bf23e9ec9c9132644bd79e14794a6ac565c (diff) | |
feat: made the script scarier
| -rw-r--r-- | conflooze.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/conflooze.sh b/conflooze.sh index cc3acc1..b7198a8 100644 --- a/conflooze.sh +++ b/conflooze.sh @@ -9,7 +9,11 @@ while true; do if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then printf "\e[31m" fi - printf "%10.2f%%\e[m\r" "$(echo "$i+56" | bc)" + printf "%10.2f%%" "$(echo "$i+56" | bc)" + if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then + printf " WARNING - Memory full, overriding files..." + fi + printf "\e[m\r" sleep 0.5 i="$(echo "$i * 1.5" | bc)" done |
