commit 3a135ae7fd417e40d7dd21f138715a6945b1ceaa
parent 93932d7b5df0b2de51c6b7033932927fb4587e3b
Author: hhvn <dev@hhvn.uk>
Date: Thu, 23 Dec 2021 23:02:23 +0000
.s/b/pexelgrab: empty string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scripts/bin/pexelgrab b/.scripts/bin/pexelgrab
@@ -25,7 +25,7 @@ grepout(){
[ -f /tmp/pexels ] && old=$(printf "yes\nno" | dmenu -i -p "Use old request?")
[ "$old" != "yes" ] && {
- query=$(echo | dmenu -i -p "Search query (required):")
+ query=$(printf '' | dmenu -i -p "Search query (required):")
[ "$query" = "" ] && echo "Query required" && exit 1 || request="search?query=$(echo "$query" | tr ' ' '+')"
perpage=$(echo "DEFAULT" | dmenu -i -p "Results per page:")
[ "$perpage" != "DEFAULT" ] && request="${request}&per_page=$perpage" || perpage="15"