summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parentffec1a19d10991df5611199ff194b62c5e0f5290 (diff)
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
Diffstat (limited to 'tools')
-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 {
my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \;';
print `$c`;
- my @call = `find .rockbox/codecs`;
+ my @call = `find .rockbox/codecs -type f`;
if(!$call[0]) {
# no codec was copied, remove directory again
- unlink(".rockbox/codecs");
+ rmdir(".rockbox/codecs");
}