Skip to content

Commit a1a7045

Browse files
Escape backslash explicitly
1 parent da64ce2 commit a1a7045

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
@@ -147,7 +147,7 @@ SH_ECHO
147147
fi
148148
#write the code down
149149
echo "${startSym}"
150-
echo " ${echo}"' "\033['"${ulCode}${bCode}${code}""$(grep "${color}" "${table}" | awk '{print $2}')"'m$'"${para}"'\033[m"'
150+
echo " ${echo}"' "\\033['"${ulCode}${bCode}${code}""$(grep "${color}" "${table}" | awk '{print $2}')"'m$'"${para}"'\\033[m"'
151151
echo "${endSym}"
152152
} >> "${newDist}"
153153
done
@@ -183,7 +183,7 @@ LOLCAT
183183
fnName="${fn}echo${dot}Reset${brackets}"
184184
cat << RESET >> "${newDist}"
185185
${fnName}${startSym}
186-
echo "\$${para}" | tr -d '[:cntrl:]' | sed -E "s/\\[((;)?[0-9]{1,3}){0,3}m//g" | xargs
186+
echo "\$${para}" | tr -d '[:cntrl:]' | sed -E "s/\\\\[((;)?[0-9]{1,3}){0,3}m//g" | xargs
187187
${endSym}
188188
RESET
189189
} &

0 commit comments

Comments
 (0)