From 71eda36e94b0a28675f1e36e76214337d5cebdaa Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Wed, 9 Aug 2023 18:28:16 +0200 Subject: [PATCH] =?utf8?q?Dodanie=20opcji=20'-t'=20do=20polecenia=20'ssh'?= =?utf8?q?=20pod=20wankiem=20wyst=C4=99powania=20w=C5=9Br=C3=B3d=20argumen?= =?utf8?q?t=C3=B3w=20pozycyjnych=20s=C5=82owa=20'shell'.=20Opcja=20'-t'=20?= =?utf8?q?=C5=BC=C4=85da=20przydzielenia=20urz=C4=85dzenia=20TTY=20do=20se?= =?utf8?q?sji=20pow=C5=82oki,=20w=20przeciwnym=20wypadku=20pow=C5=82oka=20?= =?utf8?q?nie=20funkcjonuje=20normalnie?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- idle-clic | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/idle-clic b/idle-clic index c58a867..d325a87 100755 --- a/idle-clic +++ b/idle-clic @@ -35,7 +35,11 @@ function help() { if [ -f ~/.idle/idle.conf ]; then source ~/.idle/idle.conf; echo "IDLE Server response:"; - ssh ${SSH_OPTS} ${RUSER}@${IDLESERVER} "idle-clis $@"; + if echo $@ | grep 'shell'; then + ssh -t ${SSH_OPTS} ${RUSER}@${IDLESERVER} "idle-clis $@"; + else + ssh ${SSH_OPTS} ${RUSER}@${IDLESERVER} "idle-clis $@"; + fi if [ $? -eq 1 ]; then help; exit 1; fi else echo "There is no IDLE config file. Exiting..."; -- 2.39.5