From c497878ceb1954f196c7e85e853b57561571db3b Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Wed, 1 Mar 2023 22:05:53 +1030 Subject: [PATCH] removed language test --- .local/bin/cht.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.local/bin/cht.sh b/.local/bin/cht.sh index 2a7f7fb..2915811 100755 --- a/.local/bin/cht.sh +++ b/.local/bin/cht.sh @@ -11,9 +11,5 @@ fi read -rp "Enter Query: " query -if grep -qs "$selected" "$languages"; then - query=$(echo "$query" | tr ' ' '+') - tmux neww bash -c "curl cht.sh/$selected/$query & while [ : ]; do sleep 1; done" -else - tmux neww bash -c "curl -s cht.sh/$selected~$query | less" -fi +query=$(echo "$query" | tr ' ' '+') +tmux neww bash -c "curl cht.sh/$selected/$query & while [ : ]; do sleep 1; done"