From 56b914d69d96cc410d9bf385c18bcb128af83a58 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 7 Dec 2011 12:11:36 -0300 Subject: Added synced check --- any-to-ours | 5 +++++ 1 file changed, 5 insertions(+) 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..." -- cgit v1.2.3-54-g00ecf