[SCM] debian-live/autotesting branch, master, updated. 9c5143b50da2155314f60f09166d45a23b762492
Chris Lamb
chris at chris-lamb.co.uk
Fri Aug 8 22:58:08 UTC 2008
The following commit has been merged in the master branch:
commit 36efcd42edd7a1f56b78930d51719aae8eb0a106
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date: Fri Aug 8 23:09:54 2008 +0100
Misc tidying.
Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>
diff --git a/run-batch-autotesting.sh b/run-batch-autotesting.sh
index d7275c3..e551b76 100755
--- a/run-batch-autotesting.sh
+++ b/run-batch-autotesting.sh
@@ -64,13 +64,13 @@ fi
echo "Lock file present indicating $0 is running" >/tmp/run-batch-autotesting.lock
-URLS=$(cat $URLLIST) # stdio is used by video-qemu-booting
-for URL in $URLS
+for URL in $(cat $URLLIST)
do
- BASE_NAME=$(echo $URL | rev | cut -d"/" -f 1 | rev)
- PART_URL=$(echo $URL | rev | cut -d"/" -f 2- | rev)
+ BASE_NAME=$(basename $URL)
+ PART_URL=$(dirname $URL)
MD5SUMS="$PART_URL/$MD5SUM_FILE"
HAS_FILE_UPDATED_TODAY=$(find $DIRECTORY/ -ctime -0 \! -type d | grep "$BASE_NAME")
+
if [ -n "$HAS_FILE_UPDATED_TODAY" ]
then
echo "$BASE_NAME already downloaded today "
--
debian-live/autotesting
More information about the debian-live-changes
mailing list