Skip to content

Commit

Permalink
use shell=True (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas authored Mar 21, 2023
1 parent e03a780 commit 65a75a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckit/command.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import os
import shlex
import subprocess
from dataclasses import dataclass

Expand Down Expand Up @@ -108,7 +107,7 @@ def run(self):
for command in cmd:
if self.echo:
click.echo(command)
proc = subprocess.run(shlex.split(self._expand_env_vars(command)))
proc = subprocess.run(self._expand_env_vars(command), shell=True)
if proc.returncode:
# Stop running commands if a command fails.
break
Expand Down

0 comments on commit 65a75a3

Please sign in to comment.