Skip to content

Commit 851d939

Browse files
committed
refactor: replace cat "file" | while with while < "file"
1 parent 58d242d commit 851d939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ else
162162
fi
163163
SH_ECHO
164164
fi
165-
cat "${table}" | while read -r color colorCode; do
165+
while read -r color colorCode; do
166166
# light or not
167167
for light in "" "Light"; do
168168
if [ "${light}" = "" ]; then
@@ -206,7 +206,7 @@ SH_ECHO
206206
done
207207
done
208208
done
209-
done
209+
done < "${table}"
210210

211211
# rainbow output relys on lolcat
212212
fnName="${fn}echo${dot}Rainbow${brackets}"

0 commit comments

Comments
 (0)