Skip to content
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

MacOS Montery Date fix for your script #4

Open
kf0ezb opened this issue Mar 2, 2022 · 0 comments
Open

MacOS Montery Date fix for your script #4

kf0ezb opened this issue Mar 2, 2022 · 0 comments

Comments

@kf0ezb
Copy link

kf0ezb commented Mar 2, 2022

I am making your script work with Mac OS Montery, the date command you use to create the video for yesterday doesn't work. The correct line of code for it is as follows.

The commented line below is *nix, the line below that is the fix for MacOS Montery

ls "$snapDir/"date '+%F' -d "1 day ago".jpg | sort > "$snapFileList"

 ls "$snapDir/"*`date -v '-1d' '+%Y-%m-%d'`*.jpg | sort > "$snapFileList"

Works a treat wanted to let you know. I use UI stuff here at my house and rather than put this on my Cloud Key Gen 2+ I use launchctld to schedule this for me. to create a video for today worked just fine but when I tried to create one from yesterdays images it threw an error.

Thanks for a great script, I hope this helps someone else.

Doug Lewis
KF0EZB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant