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:
parent
ffec1a19d1
commit
cff7b0614b
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue