Skip to content

Commit

Permalink
Fix bug where extra line was being printed when commands were run in …
Browse files Browse the repository at this point in the history
…parallel
  • Loading branch information
joowani committed Jan 9, 2016
1 parent 0597c0e commit 880202d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions dtags/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@ def main():
preexec_fn=os.setsid
)
processes.append((path, tag, process, tmp_file))

for path, tag, process, tmp_file in processes:
child_exit_code = process.wait()
tmp_file.seek(0)
_print_header(tag, path)
print(tmp_file.read().rstrip("\n"))
print(tmp_file.read())
if child_exit_code != 0:
exit_code = 1
if parsed.exit_codes:
_print_exit_code(child_exit_code)
print("")
tmp_file.close()
else:
# Run the command sequentially
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

setup(
name="dtags",
version="1.0.4",
version="1.0.5",
description="Directory tags for lazy programmers",
author="Joohwan Oh",
author_email="joohwan.oh@outlook.com",
url="https://github.com/joowani/dtags",
download_url="https://github.com/joowani/dtags/tarball/1.0.4",
download_url="https://github.com/joowani/dtags/tarball/1.0.5",
packages=find_packages(),
install_requires=["argcomplete"],
entry_points={
Expand Down

0 comments on commit 880202d

Please sign in to comment.