Skip to content

Commit d2911a7

Browse files
authored
Fix bad empty-directory check
1 parent 2d5ef7f commit d2911a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/sdl2_image/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def prebuild_arch(self, arch):
3232
line_split[-1].strip()
3333
)
3434
# Clone if needed
35-
if not os.path.exists(clone_path) or os.listdir(clone_path) == 0:
35+
if not os.path.exists(clone_path) or not os.listdir(clone_path):
3636
shprint(
3737
sh.git, "clone", url,
3838
"--depth", "1", "-b",

0 commit comments

Comments
 (0)