зеркало из https://github.com/docker/kitematic.git
Fix incorrect syntax that prevents to open the stable version of iTerm.
This commit is contained in:
Родитель
b5636fbc8e
Коммит
d6daabb233
|
@ -15,16 +15,7 @@ EOF`
|
|||
function open_iterm () {
|
||||
osascript > /dev/null <<EOF
|
||||
tell application "iTerm"
|
||||
if version < 2.9 then
|
||||
activate
|
||||
try
|
||||
tell current window
|
||||
create tab with default profile
|
||||
tell the current session of current window
|
||||
write text "bash -c \"$CMD\""
|
||||
end tell
|
||||
end tell
|
||||
on error
|
||||
try
|
||||
tell the first terminal
|
||||
launch session "Default Session"
|
||||
|
@ -40,8 +31,6 @@ function open_iterm () {
|
|||
end tell
|
||||
end tell
|
||||
end try
|
||||
end try
|
||||
end if
|
||||
end tell
|
||||
EOF
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче