Use check-dld.sh to check your downloads.

This commit is contained in:
Alard
2011-11-05 17:20:42 +01:00
parent 705e9cb418
commit ffb94dfea2
Executable
+29
View File
@@ -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