summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-06 20:42:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-06 20:42:45 +0000
commitcff7b0614b1565fb4e5dc49010687aad91fc87d2 (patch)
treeb0183db9f45420dd3c4d68a4cf9e10eac10e9e35
parentffec1a19d10991df5611199ff194b62c5e0f5290 (diff)
downloadrockbox-cff7b0614b1565fb4e5dc49010687aad91fc87d2.tar.gz
rockbox-cff7b0614b1565fb4e5dc49010687aad91fc87d2.zip
fixed the removal of the codec dir properly in case of no codecs available
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7481 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/buildzip.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 935de6b208..b5e4435545 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -58,10 +58,10 @@ sub buildzip {
58 my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \;'; 58 my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \;';
59 print `$c`; 59 print `$c`;
60 60
61 my @call = `find .rockbox/codecs`; 61 my @call = `find .rockbox/codecs -type f`;
62 if(!$call[0]) { 62 if(!$call[0]) {
63 # no codec was copied, remove directory again 63 # no codec was copied, remove directory again
64 unlink(".rockbox/codecs"); 64 rmdir(".rockbox/codecs");
65 } 65 }
66 66
67 67