-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I make it work on OSx? #2
Comments
Magnus, I was also unable to get the script to work on Big Sur. I wrote a stand-alone python 3.7 script as a replacement and managed to get all the attachments. It's not field tested but I can put it on GitHub if you need it. Stewart |
Thanks! However, I already exported my attachments. I ended up just extracting the ID's from
with
This works fine for a one-time export, but your Python script might be useful for others who want full automation on OSx. |
After some experimenting and a newfound hate of macOS'
In short: There's still a bug where the saved filenames stop at a space (e.g. "Test File.txt" is saved as "Test"). I just went and manually fixed the filenames by checking the items in Lastpass' Vault. |
The script (as currently posted) is not compatible with the macOS (OSX) (Mac OS X) sed, which is from BSD. I fixed it this way:
|
When running this on OSx, it doesn't export any attachments.
It seems that the regex that extracts the id's doesn't work as expected. When I try running
lpass ls | sed -n "s/^.*id:\s*\([0-9]*\).*$/\1/p"
directly in the terminal, it just returns a bunch of empty lines. I've tried experimenting to get it to work, but didn't succeed.
Any ideas?
The text was updated successfully, but these errors were encountered: