From a6dfa25441de74ba2c8d5269bb5bbdc29a728827 Mon Sep 17 00:00:00 2001 From: tke Date: Wed, 4 Dec 2019 11:10:44 +0100 Subject: [PATCH] fixed parameter count bug in watchgrowth --- watchgrowth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchgrowth.sh b/watchgrowth.sh index d40818a..9699bdb 100755 --- a/watchgrowth.sh +++ b/watchgrowth.sh @@ -10,7 +10,7 @@ old_size=${new_size} #speed=$(( ${size_diff} / (1024*1024) )) progress="" -if [[ $# -eq 2 ]] ; then +if [[ $# -eq 3 ]] ; then total=${2} progress_p=$(echo "2 k ${new_size} ${total} 100 / / p" | dc) progress="${progress_p} %"