Fixed File.chmod call (wrong number of arguments (1 for 0)).
This commit is contained in:
parent
99de6f801f
commit
5e87eb438b
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ returns
|
|||
file = File.new(location, 'wb')
|
||||
file.write(data)
|
||||
file.close
|
||||
File.chmod(permission.to_i(8), location)
|
||||
File.chmod(permission.to_s.to_i(8), location)
|
||||
rescue => e
|
||||
raise 'ERROR: ' + e.inspect
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue