lib/kitabu/generator.rb in kitabu-1.0.4 vs lib/kitabu/generator.rb in kitabu-1.0.5
- old
+ new
@@ -66,10 +66,10 @@
private
# Retrieve user's name using finger.
# Defaults to <tt>John Doe</tt>.
#
def full_name
- name = `finger $USER 2> /dev/null | grep Login | colrm 1 46`.chomp
+ name = `finger $USER 2> /dev/null | grep Login | colrm 1 46 2> /dev/null`.chomp
name.present? ? name.squish : "John Doe"
end
end
end