Skip to content

Fix runtime error on Mac OS#14

Open
lcd1232 wants to merge 1 commit into
Yegorov:masterfrom
lcd1232:patch-1
Open

Fix runtime error on Mac OS#14
lcd1232 wants to merge 1 commit into
Yegorov:masterfrom
lcd1232:patch-1

Conversation

@lcd1232

@lcd1232 lcd1232 commented Jul 2, 2022

Copy link
Copy Markdown

Closes #13

@ghost

ghost commented Jul 2, 2022

Copy link
Copy Markdown

Sider has detected 2 warnings on analyzing the commit 1b80b93.

If the errors persist even after retrying, the following actions may resolve them:

If you still have problems, feel free to ask us via chat. 💬


You can turn off such notifications if unnecessary.

def self.check_wget
if Yadisk::OS.windows?
output = IO.popen("where wget").read
output = IO.popen("wget").read

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you need to check it in not for Windows OS.
For example:

if Yadisk::OS.mac_os? # need implement this method
  output = IO.popen("wget").read
  abort! unless $?.to_i == 0
  return
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error (Errno::ENOENT)

2 participants