diff --git a/prettyPrintSnippet.sh b/prettyPrintSnippet.sh index 1343e25..fe69939 100755 --- a/prettyPrintSnippet.sh +++ b/prettyPrintSnippet.sh @@ -3,7 +3,7 @@ function prettyPrint { str=$1 strarr=() for (( i=0; i<${#str}; i++ )); do - strarr+=(`printf '%d\n' "'${str:$i:1}"`) + strarr+=($(printf '%d\n' "'${str:$i:1}")) done for ((i=0;i<$height;i++)) do for j in "${strarr[@]}"; do