Fixed File.chmod call (wrong number of arguments (1 for 0)).

This commit is contained in:
Martin Edenhofer 2016-02-01 00:54:54 +01:00
parent 99de6f801f
commit 5e87eb438b

View file

@ -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