mirror of https://github.com/docker/docs.git
Merge pull request #565 from northerngit/master
Add missing quotation and prevent globbing, word splitting and whites…
This commit is contained in:
commit
b9de634eb7
|
@ -42,13 +42,13 @@ function open_terminal () {
|
||||||
delay 0.4
|
delay 0.4
|
||||||
tell application "System Events" to keystroke "t" using command down
|
tell application "System Events" to keystroke "t" using command down
|
||||||
tell application "Terminal"
|
tell application "Terminal"
|
||||||
do script "bash -c \"$CMD\" in window 1
|
do script "bash -c \"$CMD\"" in window 1
|
||||||
end tell
|
end tell
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $ITERM_EXISTS == "true" ]; then
|
if [ "$ITERM_EXISTS" == "true" ]; then
|
||||||
open_iterm $* || open_terminal $*
|
open_iterm "$@" || open_terminal "$@"
|
||||||
else
|
else
|
||||||
open_terminal $*
|
open_terminal "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue