We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf8e52 commit 9ea77baCopy full SHA for 9ea77ba
generator.sh
@@ -140,7 +140,7 @@ else
140
fi
141
SH_ECHO
142
143
- awk '{print $1}' "${table}" | while IFS= read -r color; do
+ cat "${table}" | while read -r color colorCode; do
144
# light or not
145
for light in "" "Light"; do
146
if [ "${light}" = "" ]; then
@@ -178,7 +178,7 @@ SH_ECHO
178
echo ""
179
printf "%s%s" "${echoFunction}" "${brackets}"
180
# write the code down
181
- echo "${startSym}${echo}"' "\\033['"${finalStyleCode}${code}""$(grep "${color}" "${table}" | awk '{print $2}')"'m$'"${para}"'\\033[m"'"${endSym}"
+ echo "${startSym}${echo}"' "\\033['"${finalStyleCode}${code}${colorCode}"'m$'"${para}"'\\033[m"'"${endSym}"
182
} >> "${tempDist}"
183
184
done
0 commit comments