Merge pull request #658 from es80/shell-fix

fix a regression for shell subprocess
This commit is contained in:
tobi-wan-kenobi 2020-06-21 19:42:37 +02:00 committed by GitHub
commit df9a1f9a4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class Module(core.module.Module):
def update(self):
# if requested then run not async version and just execute command in this thread
if not self.__async:
self.__output = util.cli.execute(self.__command, ignore_errors=True).strip()
self.__output = util.cli.execute(self.__command, shell=True, ignore_errors=True).strip()
return
# if previous thread didn't end yet then don't do anything