📝 Added multi-word query to quetre script
This commit is contained in:
parent
8a9077f930
commit
b1bff5cff8
1 changed files with 12 additions and 1 deletions
|
|
@ -1,2 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
links "https://quetre.iket.me/search?q=${1}"
|
lastarg=("${@: -1}")
|
||||||
|
|
||||||
|
search=""
|
||||||
|
for ARG in "${@}" ; do
|
||||||
|
if [[ $ARG == "${lastarg[1]}" ]] ; then
|
||||||
|
search+="${ARG}"
|
||||||
|
else
|
||||||
|
search+="${ARG}+"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
links "https://quetre.iket.me/search?q=${search}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue