diff --git a/assets/android.lua b/assets/android.lua index dbf05d75c..5c52a94b6 100644 --- a/assets/android.lua +++ b/assets/android.lua @@ -2725,13 +2725,7 @@ local function run(android_app_state) os.execute = function(command) -- luacheck: ignore 122 if command == nil then return -1 end - local argv = {} - command:gsub("([^ ]+)", function(arg) - -- strip quotes around argument, since they are not necessary here - arg = arg:gsub('"(.*)"', "%1") -- strip double quotes - arg = arg:gsub("'(.*)'", "%1") -- strip single quotes - table.insert(argv, arg) - end) + local argv = {'sh', '-c', command} return android.execute(unpack(argv)) end