forked from len0rd/rockbox
Skip an unneeded check. Simply call rmdir, and if it's empty it goes - if not, it stays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18109 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4077f236ce
commit
6539b434aa
1 changed files with 2 additions and 6 deletions
|
|
@ -284,12 +284,8 @@ STOP
|
||||||
|
|
||||||
find(find_copyfile(qr/.*\.codec/, abs_path('.rockbox/codecs/')), 'apps/codecs');
|
find(find_copyfile(qr/.*\.codec/, abs_path('.rockbox/codecs/')), 'apps/codecs');
|
||||||
|
|
||||||
my @call = `find .rockbox/codecs -type f 2>/dev/null`;
|
# remove directory again if no codec was copied
|
||||||
if(!$call[0]) {
|
rmdir(".rockbox/codecs");
|
||||||
# no codec was copied, remove directory again
|
|
||||||
rmdir(".rockbox/codecs");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
find(find_copyfile(qr/\.(rock|ovl)/, abs_path('.rockbox/rocks/')), 'apps/plugins');
|
find(find_copyfile(qr/\.(rock|ovl)/, abs_path('.rockbox/rocks/')), 'apps/plugins');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue