Skip to content

Commit

Permalink
Added search feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Besnn committed Feb 2, 2021
1 parent 00418f1 commit f12e0ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion moco
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ case $1 in
echo -e "Please, try one of the valid arguments bellow\n"
< utils/.help tr ' ' ' ' | pr -t -1
fi
exit 1
exit 1;;
"give"|"find")
grep -i $2 utils/.help || echo -e "Couldn't find currency. Sorry.\n" 1>&2 && exit 1
exit 0
esac

if ! [[ $1 =~ ^[[:digit:]].?+$ ]]; then
Expand Down Expand Up @@ -128,3 +131,4 @@ do
done

echo -en '\n'
exit 0

0 comments on commit f12e0ff

Please sign in to comment.