]> gitweb.morketsmerke.org Git - idle.git/commitdiff
Dodanie opcji '-t' do polecenia 'ssh' pod wankiem występowania wśród argumentów pozyc...
authorxf0r3m <jakubstasinski@protonmail.com>
Wed, 9 Aug 2023 16:28:16 +0000 (18:28 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Wed, 9 Aug 2023 16:28:16 +0000 (18:28 +0200)
idle-clic

index c58a867c8d452903b3728fd722e6870b2b5b7279..d325a87d67c76a6024951d35ace89c8312fe2ece 100755 (executable)
--- 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...";