Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] remove -t parameter and replace it with a check of whether it's tty #265

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

MangoIV
Copy link
Contributor

@MangoIV MangoIV commented Dec 27, 2023

I haven't tested the manual version yet...

@Mic92
Copy link
Member

Mic92 commented Jan 1, 2024

Looks good otherwise.

@MangoIV
Copy link
Contributor Author

MangoIV commented Jan 1, 2024

Yeah I’ll probably get the chance to try it out soon, I’ll report back then. :)

@MangoIV
Copy link
Contributor Author

MangoIV commented Jan 1, 2024

it works...

@MangoIV MangoIV marked this pull request as ready for review January 1, 2024 13:57
src/nixos-anywhere.sh Outdated Show resolved Hide resolved
Comment on lines 109 to 111
-t | --tty)
ssh_tty_param="-t"
;;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useful for tools that might want to wrap up this program and interact with it as if they had a TTY.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave it in if @Mic92 and @RaitoBezarius don't have anything against it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zimbatm according to @Lassulus ssh blocks if the input is a pipe and not a tty.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I defer back to Lassulus

@Mic92 Mic92 force-pushed the mangoiv/remove-dash-t branch from ce88f49 to 1fec12a Compare January 7, 2024 11:59
@Mic92 Mic92 force-pushed the mangoiv/remove-dash-t branch from 1fec12a to 4fb809d Compare January 7, 2024 12:01
@Mic92
Copy link
Member

Mic92 commented Jan 7, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Jan 7, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 4c94cec

@mergify mergify bot merged commit 4c94cec into nix-community:main Jan 7, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants