mirror of
https://github.com/kennethreitz-archive/heroku-mobileme.git
synced 2026-06-05 07:16:14 +00:00
Use check-dld.sh to check your downloads.
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Check your downloads.
|
||||
#
|
||||
# This script will look in your data/ directory for downloads and
|
||||
# tell you which users are incomplete and/or need to be fixed.
|
||||
# It will not actually fix anything.
|
||||
#
|
||||
# Usage: check-dld.sh
|
||||
#
|
||||
|
||||
for d in data/*/*/*/*
|
||||
do
|
||||
username=$( basename "$d" )
|
||||
|
||||
# check for any incomplete downloads
|
||||
if [ -f "${d}/"*"/.incomplete" ]
|
||||
then
|
||||
echo "${username} is still incomplete."
|
||||
continue
|
||||
fi
|
||||
|
||||
# FIX 1: check for early web.me.com downloads
|
||||
if [[ ! -f "${d}/web.me.com/wget-discovery.log" ]]
|
||||
then
|
||||
echo "${username} needs to be fixed (web.me.com)."
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user