Skip to content

Commit 7ad0207

Browse files
committed
Add a check to bake strip command's options only when they exist
1 parent 8cd69dc commit 7ad0207

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/bootstrap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def strip_libraries(self, arch):
265265
return
266266
env = arch.get_env()
267267
tokens = shlex.split(env['STRIP'])
268-
strip = sh.Command(tokens[0]).bake(tokens[1:])
268+
strip = sh.Command(tokens[0])
269+
if len(tokens) > 1:
270+
strip = strip.bake(tokens[1:])
269271

270272
libs_dir = join(self.dist_dir, '_python_bundle',
271273
'_python_bundle', 'modules')

0 commit comments

Comments
 (0)