зеркало из 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,33 +15,22 @@ EOF`
|
||||||
function open_iterm () {
|
function open_iterm () {
|
||||||
osascript > /dev/null <<EOF
|
osascript > /dev/null <<EOF
|
||||||
tell application "iTerm"
|
tell application "iTerm"
|
||||||
if version < 2.9 then
|
activate
|
||||||
activate
|
try
|
||||||
try
|
tell the first terminal
|
||||||
tell current window
|
launch session "Default Session"
|
||||||
create tab with default profile
|
tell the last session
|
||||||
tell the current session of current window
|
write text "bash -c \"$CMD\""
|
||||||
write text "bash -c \"$CMD\""
|
end tell
|
||||||
end tell
|
end tell
|
||||||
end tell
|
on error
|
||||||
on error
|
tell (make new terminal)
|
||||||
try
|
launch session "Default Session"
|
||||||
tell the first terminal
|
tell the last session
|
||||||
launch session "Default Session"
|
write text "bash -c \"$CMD\""
|
||||||
tell the last session
|
end tell
|
||||||
write text "bash -c \"$CMD\""
|
end tell
|
||||||
end tell
|
end try
|
||||||
end tell
|
|
||||||
on error
|
|
||||||
tell (make new terminal)
|
|
||||||
launch session "Default Session"
|
|
||||||
tell the last session
|
|
||||||
write text "bash -c \"$CMD\""
|
|
||||||
end tell
|
|
||||||
end tell
|
|
||||||
end try
|
|
||||||
end try
|
|
||||||
end if
|
|
||||||
end tell
|
end tell
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче