Now don't have to use quotes

Unless it's longer than 9 words
This commit is contained in:
Shihaam Abdul Rahman
2021-10-04 21:08:03 +05:00
committed by GitHub
parent a26af481f9
commit d3e5d50ed5

View File

@@ -1,6 +1,6 @@
#!/bin/bash
QUERY=$(echo $1 | sed "s/ /+/g")
QUERY=$(echo $1$2$3$4$5$6$7$8$9 | sed "s/ /+/g")
SEARCH=$(curl -s https://www.syair.info/search?q=${QUERY} \
| pup 'a.title json{}')