diff mbox

[test_fetch_md5sums,1/2] lib/fetch.sh: Add missing ${local_snapshots} to md5sum path.

Message ID 1381522338-30673-1-git-send-email-ryan.arnold@linaro.org
State New
Headers show

Commit Message

Ryan S. Arnold Oct. 11, 2013, 8:12 p.m. UTC
From: "Ryan S. Arnold" <ryan.arnold@linaro.org>

The code would generate a spurious cp error due to a missing
${local_snapshots} directory in the md5sums path.
---
 lib/fetch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/fetch.sh b/lib/fetch.sh
index d2e5d72..7505813 100755
--- a/lib/fetch.sh
+++ b/lib/fetch.sh
@@ -37,7 +37,7 @@  fetch()
 	    cp -f ${local_snapshots}/md5sums ${local_snapshots}/md5sums.bak
 	fi
 	fetch_http md5sums
-	if test ! -s md5sums; then
+	if test ! -s ${local_snapshots}/md5sums; then
 	    cp -f ${local_snapshots}/md5sums.bak ${local_snapshots}/md5sums
 	fi
 	return $?