1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Only search or code snippet if there is a language argument

This commit is contained in:
Your Name
2020-06-15 14:52:54 -04:00
parent 47176f1ad2
commit cc72fa81a0
+2 -1
View File
@@ -86,7 +86,8 @@ oeis() (
| tr -d '()' \
| sort -u >> $TMP/list
[ $(wc -c < $TMP/list) -ne 0 ] && cat ${TMP}/list || printf "No code snippets available.\n"
else
elif [ $# -gt 1 ]
then
if [[ ${LANGUAGE^^} == 'MAPLE' ]] && grep -q 'MAPLE' $DOC
then
GREP_REGEX='MAPLE.*CROSSREFS'