- for s in $target/current $target/[0-9]*-[0-9]*; do
- [ -e "$s" ] || continue
- echo " - Snapshot: $s"
- Check_Size "$s" " "
- Check_Stamp "$s/.stamp" " "
+ if [ "$ONLY_LATEST" = "0" ]; then
+ for s in $target/[0-9]*-[0-9]* $target/current; do
+ [ -e "$s" ] || continue
+ Snapshot_Info "$s"
+ snapshots=$snapshots+1
+ done
+ elif [ -e "$target/latest" ]; then
+ Snapshot_Info "$target/latest"