Skip to content

Commit

Permalink
tools: check missing snapshot link targets in link checker tool
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Jan 16, 2024
1 parent 389654f commit c27e8e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/checksnapshotlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ find -L /backingfiles/snapshots/ -type f -name \*.mp4 | sort -r | {
fi
done
}

find /mutable/TeslaCam -xtype l | {
while read -r path
do
echo "link target for '$path' does not exist"
if [ "$REPAIR" = "true" ]
then
rm "$path"
fi
done
}

0 comments on commit c27e8e9

Please sign in to comment.