From 4c75084dafe87c7675b5603d0af6611255ee5539 Mon Sep 17 00:00:00 2001 From: czoczo Date: Mon, 29 Jan 2018 14:48:18 +0100 Subject: [PATCH] fixing syntax --- prettyPrintSnippet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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