Skip to content

Commit

Permalink
Skip recentclip links to files that don't fit the date pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Jul 16, 2024
1 parent 03f4f60 commit 440bb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/make_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function linksnapshotfiletorecents {
local recents=/mutable/TeslaCam/RecentClips

filename=${file##/*/}
if [ "$filename" = "event.json" ]
if [[ ! "$filename" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}.* ]]
then
return
fi
Expand Down

0 comments on commit 440bb42

Please sign in to comment.