aboutsummaryrefslogtreecommitdiff
path: root/1337x
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-05 09:15:03 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-11 19:05:05 +0530
commita63bb259b71f3470093cf19d46aa8b7cf17cfd0d (patch)
tree48749644704107db61d0db0557a119927307952e /1337x
parentdfc634370d922db7ec6f8ab2c3f40ed0e1038327 (diff)
1337x, yts: more appropriate dependency check
Diffstat (limited to '1337x')
-rwxr-xr-x1337x5
1 files changed, 3 insertions, 2 deletions
diff --git a/1337x b/1337x
index 925a02b..772c48d 100755
--- a/1337x
+++ b/1337x
@@ -29,7 +29,7 @@ dep_check()
get_1337x()
{
: "${1:?}"
- dep_check curl
+ dep_check "curl"
curl --silent -H 'Accept-Encoding: gzip,deflate, br' --compressed "${url_1337x}/$1"
}
@@ -58,7 +58,7 @@ main()
out=
query=
- dep_check "dmenu" "pirowatch" "curl"
+ dep_check "dmenu"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
@@ -84,6 +84,7 @@ main()
then
echo "$magnet"
else
+ dep_check "pirowatch"
pirowatch "$magnet"
fi
}