From b5718a4e4bcfd5f78d46915059562b84e3141f26 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 29 Jan 2022 13:24:05 -0300 Subject: [PATCH] Remove str variable --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fe50c58..d3d660f 100755 --- a/install.sh +++ b/install.sh @@ -353,7 +353,7 @@ calcAndRun() { } calcWidth() { - str=$1; count=1; found=false; option=1 + count=1; found=false; option=1 while IFS= read -r -N 1 c; do if [[ "$c" == $'\n' ]]; then [ $count -ge $option ] && option=$count @@ -361,7 +361,7 @@ calcWidth() { count=-1 fi ((count++)) - done < <(echo -ne "$str") + done < <(echo -ne "$1") [ $option -ge $count ] && count=option echo $((count+4)) }