From 3669669b73346db9e309a6e553087c6b0e879320 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 1 Dec 2008 11:26:31 +0100 Subject: angstrom feed sorter: don't run script if there are no packages to sort --- contrib/angstrom/sort.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/angstrom/sort.sh b/contrib/angstrom/sort.sh index c00d019b4a..01b2fa3a10 100755 --- a/contrib/angstrom/sort.sh +++ b/contrib/angstrom/sort.sh @@ -1,13 +1,20 @@ #!/bin/bash # Angstrom feed sorting script -# This must be run in unstable/ directory +# This must be run in unsorted/ directory if [ $(basename $PWD) != "unsorted" ] ; then echo "Not in feed dir! Exiting" exit 1 fi +if [ $(find . -name "*.ipk" | wc -l) -gt 0 ] ; then + echo "Unsorted packages found" +else + echo "No unsorted packages found. Exiting" + exit 1 +fi + rm Packages* >& /dev/null # Find ipkg files in unsorted/ and remove stale ones -- cgit v1.2.3