Use case insensitive when looking for cookies

pull/34/head
Rafael Blumberg 2 years ago
parent 245e3d96b5
commit 1b0dc842e7

@ -76,7 +76,7 @@ fi
DownloadExtras () { DownloadExtras () {
# Check for cookies file # Check for cookies file
if find /config -type f -name "cookies.txt" | read; then if find /config -type f -iname "cookies.txt" | read; then
cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)" cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)"
log "$itemTitle :: Cookies File Found!" log "$itemTitle :: Cookies File Found!"
else else

@ -36,7 +36,7 @@ fi
CookiesCheck () { CookiesCheck () {
# Check for cookies file # Check for cookies file
if find /config -type f -name "cookies.txt" | read; then if find /config -type f -iname "cookies.txt" | read; then
cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)" cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)"
log "Cookies File Found!" log "Cookies File Found!"
else else

Loading…
Cancel
Save