We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b629b commit 50a5ecdCopy full SHA for 50a5ecd
fromcache.sh
@@ -17,7 +17,7 @@ latest=${cache}/latest
17
18
if [ -e ${latest}/$1 ]; then
19
rsync -a ${latest}/$1 .
20
- echo $1 >> rsynced
+ md5sum $1 > $1.md5
21
fi
22
23
tocache.sh
@@ -23,9 +23,7 @@ thiscache=${cache}/${BUILD_NUMBER}
24
mkdir -p ${thiscache}
25
26
-isrsynced=`grep $1 rsynced || true`
27
-
28
-if [ ! "x$isrsynced" = "x" ]; then
+if md5sum --check $1.md5 --status; then
29
ln ${cache}/latest/$1 ${thiscache}/$1
30
else
31
cp --preserve $1 ${thiscache}/$1
0 commit comments