summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-12-07 12:11:36 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-12-07 12:11:36 -0300
commit56b914d69d96cc410d9bf385c18bcb128af83a58 (patch)
tree63060569a4c95c6612320f44dd45747e02f4d77a
parent6fedfa4233c8e237d75ddec6ac7122e051f509a5 (diff)
Added synced check
-rwxr-xr-xany-to-ours5
1 files changed, 5 insertions, 0 deletions
diff --git a/any-to-ours b/any-to-ours
index 8c37622..1bd7e8a 100755
--- a/any-to-ours
+++ b/any-to-ours
@@ -49,6 +49,11 @@ for _repo in ${ARCHREPOS[@]}; do
grep 'any.pkg.tar' | \
cut -d ' ' -f 1 ))
+ if [ ${#SYNCED[@]} -eq 0 ]; then
+ msg2 "Already synced (or error happened)"
+ continue
+ fi
+
msg2 "Synced ${#SYNCED[@]} packages"
msg2 "Adding to db..."