Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuukk committed Jan 14, 2025
1 parent f8fc3a4 commit 5d1e4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cheat-sheet
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ while :; do
fi

echo 'Selected:' "$selected"
echo -n "Enter Query: "
echo -n "Query: "
read -r query

printDelimeter

if grep -qs "$selected" <<< "$languages"; then
echo "cht.sh/$selected/$query"
echo "To be found: cht.sh/$selected/$query"
printDelimeter "\n"

query=$(echo "$query" | tr ' ' '+')
curl cht.sh/"$selected"/"$query"
else
echo "cht.sh/$selected~$query"
echo "To be found: cht.sh/$selected~$query"
printDelimeter

curl cht.sh/"$selected"~"$query"
Expand Down

0 comments on commit 5d1e4b1

Please sign in to comment.