-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unison dual-sync feature unox
for efficient syncing and with user/id mapping
#64
Changes from 1 commit
5238549
44f1c16
e0d2c7e
979914b
21c7925
7987b24
a22ff51
e3bfc11
ee9ff46
4910928
a28ec76
2ca5715
4d2c7fd
ada42b3
481a383
4820f16
309801b
c7514c3
55a75a4
282818b
75f35d0
c254f63
e3ecf79
e94d9e6
27c5928
17688ba
224ecaf
1884f1a
b569ac2
84baa85
5f288f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,9 +46,14 @@ def self.unison_available | |
|
||
def self.unox_available | ||
if (find_executable0 'unison-fsmonitor').nil? | ||
raise('Could not find unison-fsmonitor binary in path. Please install it, see https://github.com/hnsl/unox, or simply run : | ||
curl "https://raw.githubusercontent.com/hnsl/unox/master/unox.py" -o "/usr/local/bin/unison-fsmonitor" \ | ||
&& chmod +x /usr/local/bin/unison-fsmonitor') | ||
cmd = 'curl "https://raw.githubusercontent.com/hnsl/unox/master/unox.py" -o "/usr/local/bin/unison-fsmonitor" \ | ||
&& chmod +x /usr/local/bin/unison-fsmonitor' | ||
Thor::Shell::Basic.new.say_status 'warning', "Could not find unison-fsmonitor binary in path. Please install unox before you continue, see https://github.com/hnsl/unox.", :yellow | ||
if Thor::Shell::Basic.new.yes?("Shall I install unison-fsmonitor for you?") | ||
`#{cmd}` | ||
else | ||
raise("Please install it, see https://github.com/hnsl/unox, or simply run :\n #{cmd}") | ||
end | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickaelperrin a pitty there is now brew alternatives. I am thinking about creating a own tap and adding this. Actually, in this case, use yes? and ask if the command should be run, run it automatically then. This makes the most sense here to ease up the installation There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought about auto install also, but as you didn't provide autoinstall of unison / fswatch / rsync... I stick with a simple help message on how to install. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason was, not everybody has brew. In your case, no dependencys are needed and its the only way to install. AFAIK wget is not part of OSX by default, you might want to use curl. I will change the others also by the way, adding a question, like for the images There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect