diff --git a/__frzr-deploy b/__frzr-deploy index 192ebfb..dc95514 100644 --- a/__frzr-deploy +++ b/__frzr-deploy @@ -303,7 +303,7 @@ clean_progress() { local scale=$1 local postfix=$2 local last_value=$scale - while IFS= read -r line; do + while IFS= read -r line || [[ -n $line ]]; do value=$(( ${line}*${scale}/100 )) if [ "$last_value" != "$value" ]; then echo ${value}${postfix} @@ -323,7 +323,7 @@ get_conf_value() { local key_found=false local values=() - while IFS= read -r line; do + while IFS= read -r line || [[ -n $line ]]; do # Remove leading and trailing whitespace line=$(echo "$line" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')