Skip to content

Commit

Permalink
Fixed shell chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew15-5 committed Jan 20, 2022
1 parent c9e9981 commit 4d36d7d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ python3 -m pip install niceshell

```bash
cd /tmp/
version=1.0.2 # Choose desired version
version=1.0.3 # Choose desired version
wget -c "https://github.com/Andrew15-5/niceshell/releases/download/v${version}/niceshell-${version}-py3-none-any.whl"
python3 -m pip -U --user install niceshell-${version}-py3-none-any.whl
```
Expand Down
2 changes: 1 addition & 1 deletion niceshell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"normalize_short_and_long_args", "quotes_wrapper", "rm", "shell",
"Shell", "ShortArgsOption", "UID", "USER"]
__author__ = "Andrew Voynov"
__version__ = "1.0.2"
__version__ = "1.0.3"

GID = Shell("id -g").output()[:-1]
GROUP = Shell("id -gn").output()[:-1]
Expand Down
2 changes: 1 addition & 1 deletion niceshell/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def shell(self, command, input_text=None,
Shell: class instance that can be chained.
"""
if stdin == "parent fd":
stdin = self.__create_stdout_fd(self.__output)
stdin = self.__create_stdout_fd(self.output())
elif isinstance(stdin, str):
stdin = self.__create_stdout_fd(stdin)
shell = Shell(command, input_text, stdin, stdout, stderr)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

setuptools.setup(
name="niceshell",
version="1.0.2",
version="1.0.3",
author="Andrew Voynov",
author_email="[email protected]",
description="Integration of shell and basic GNU core unilities for better coding.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/Andrew15-5/niceshell",
download_url="https://github.com/Andrew15-5/niceshell/releases/download/v1.0.2/niceshell-1.0.2-py3-none-any.whl",
download_url="https://github.com/Andrew15-5/niceshell/releases/download/v1.0.3/niceshell-1.0.3-py3-none-any.whl",
packages=["niceshell", "niceshell/tests"],
package_data={
"niceshell": ['*']
Expand Down

0 comments on commit 4d36d7d

Please sign in to comment.