Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit406d9f8

Browse files
author
mori-dev
committed
Merge pull request#1 from kyanagi/cygwin-cygstart
Cygwin cygstart
2 parents45f322d +ae842e6 commit406d9f8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎lib/markup-preview-command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Runner
1313
includeUtil
1414

1515
TMPDIR=File.join(Dir.tmpdir,'markup-preview')
16-
TMPFILE=File.join(TMPDIR, $$.to_s)
16+
TMPFILE=File.join(TMPDIR, $$.to_s) +'.html'
1717
FileUtils.mkdir_p(TMPDIR)unlessFileTest.directory?TMPDIR
1818

1919

‎lib/markup-preview-command/util/util.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
moduleMarkup::Preview::Command
22
moduleUtil
33

4-
defcommand_exit?(command)
4+
defcommand_exist?(command)
55
system"which#{command} >/dev/null 2>&1"
66
end
77

88
defbrowser_command
9-
return"gnome-open"ifcommand_exit?"gnome-open"
10-
return"open"ifcommand_exit?"open"
9+
return"gnome-open"ifcommand_exist?"gnome-open"
10+
return"open"ifcommand_exist?"open"
11+
return"cygstart"ifcommand_exist?"cygstart"
1112
exit1
1213
end
1314

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp