Update 'internal/chmod.rb'

master
Semisol 2022-01-25 15:09:47 +01:00
parent b051eac54e
commit 05218b98ce
No known key found for this signature in database
GPG Key ID: 474E777CEDBA3FE1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module Chmod
module Backtick
def do_backtick(evt)
target, msg = evt.args
if msg.start_with? '$ ' or msg.start_with? '#' or (msg.start_with? '`' and msg.count('`') == 1)
if msg.start_with? '$ ' or (msg.start_with? '`' and msg.count('`') == 1)
Thread.new {
Open3.popen2e("/bin/sh", "-c", msg[1..]) {|stdin, stdout_and_stderr, wait|
stdin.close