]> gitweb.morketsmerke.org Git - idle.git/commitdiff
Dodanie opcji '-q' do polecenia grep w warunku - skrypt transmisji poleceń - idle...
authorxf0r3m <jakubstasinski@protonmail.com>
Wed, 9 Aug 2023 16:30:43 +0000 (18:30 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Wed, 9 Aug 2023 16:30:43 +0000 (18:30 +0200)
idle-clic

index d325a87d67c76a6024951d35ace89c8312fe2ece..706b14ab1ae8cfcb734bdf0b2d7bacc63c9815a6 100755 (executable)
--- a/idle-clic
+++ b/idle-clic
@@ -35,7 +35,7 @@ function help() {
 if [ -f ~/.idle/idle.conf ]; then
   source ~/.idle/idle.conf;
   echo "IDLE Server response:";
-  if echo $@ | grep 'shell'; then
+  if echo $@ | grep -q 'shell'; then
     ssh -t ${SSH_OPTS} ${RUSER}@${IDLESERVER} "idle-clis $@";
   else
     ssh ${SSH_OPTS} ${RUSER}@${IDLESERVER} "idle-clis $@";