1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2005-09-06 20:42:45 +00:00
parent ffec1a19d1
commit cff7b0614b

View file

@ -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");
}