Skip to content

Commit 6b81076

Browse files
committed
💠 don't see every chars appear on the lines one by one
1 parent 464fddb commit 6b81076

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mini-matrix.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ done
105105

106106
function matrix() {
107107

108+
line=""
108109

109110
for ((i=0; i<=n_chars; i++)); do
110111
# get random char out of custom chars
111112
char=$(echo "$custom_chars" | fold -w1 | shuf | head -n1)
112-
echo -n $char
113+
line="$line$char"
113114
done
114115

116+
printf "%s" "$line"
115117

116118
}
117119

@@ -146,7 +148,7 @@ case $command in
146148
;;
147149

148150
version)
149-
echo "mini-matrix 1.0"
151+
echo "mini-matrix 0.2.0"
150152
;;
151153

152154
esac

0 commit comments

Comments
 (0)