Allow firefox profile without periods
This commit is contained in:
parent
7251334639
commit
ae104baa3a
1 changed files with 8 additions and 4 deletions
12
cookiefire
12
cookiefire
|
|
@ -67,9 +67,13 @@ cleanup
|
|||
}
|
||||
|
||||
tmpfile="$(mktemp /tmp/cookies.sqlite.XXXXXXXXXX)"
|
||||
curlcookies="$(mktemp /tmp/curlcookies.XXXXXXXXXX)"
|
||||
echo $HOME/.mozilla/firefox/*.$profile/cookies.sqlite | { read cookie_file ;
|
||||
extract_cookies "$cookie_file" ;
|
||||
}
|
||||
|
||||
# try standard firefox format (randomchars.profilename), then bare name
|
||||
cookie_file="$HOME/.mozilla/firefox/*.$profile/cookies.sqlite"
|
||||
if ! ls $cookie_file &>/dev/null; then
|
||||
cookie_file="$HOME/.mozilla/firefox/$profile/cookies.sqlite"
|
||||
fi
|
||||
|
||||
extract_cookies $cookie_file
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue