Skip to content

Commit

Permalink
update readline
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Apr 29, 2024
1 parent d688081 commit b77700a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __frzr-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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:]]*$//')

Expand Down

0 comments on commit b77700a

Please sign in to comment.