File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ function getLinkPagesRelated() {
17
17
}
18
18
19
19
function authorSuggestion(){
20
- suggestions=$( curl -sf ' https://apkcombo.com/pt/search?q=' $search ' ' |
21
- grep ' "author"' | tr ' <>·' ' #' | sort -u |
22
- awk -F ' # ' ' {print $3} ' | sed -e ' s/^ //g;s# $##g'
20
+ suggestions=$( curl -sf " https://apkcombo.com/pt/search?q=$search " |
21
+ grep ' "author"' | tr ' <>·' ' #' | awk -F ' # ' ' {print $3} ' |
22
+ sed -e ' s/^ //g;s# $##g;/^$/d ' | sort -u
23
23
)
24
24
listSuggestions=$( echo " $suggestions " | awk ' {print NR" "$0}' )
25
25
26
- echo -e " $GREEN [Did you mean]$NON Press the related number:\n$listSuggestions "
26
+ echo -e " $GREEN [Did you mean]$NON Press the related number:\n$listSuggestions \n\r $GREEN > $NON "
27
27
read number
28
28
pressedNumber=$( echo " $suggestions " | sed -n " $number ,$number " p)
29
29
echo " $GREEN [OK]$NON You've just entered $pressedNumber "
You can’t perform that action at this time.
0 commit comments