Skip to content

Commit 6fc3319

Browse files
authored
Update zeroapk.sh
1 parent 8f74472 commit 6fc3319

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zeroapk.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ function getLinkPagesRelated() {
1717
}
1818

1919
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
2323
)
2424
listSuggestions=$(echo "$suggestions"| awk '{print NR" "$0}')
2525

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 "
2727
read number
2828
pressedNumber=$(echo "$suggestions" | sed -n "$number,$number"p)
2929
echo "$GREEN[OK]$NON You've just entered $pressedNumber"

0 commit comments

Comments
 (0)