ssleert / nitch

nitch - incredibly fast system fetch written in nim
MIT License
519 stars 52 forks source link

make nitch work when /etc/hostname does not exist #17

Closed kyoheiu closed 1 year ago

kyoheiu commented 1 year ago

In this PR, first /etc/hostname is checked and if it does not exist or empty, the hname line will not be printed. (See #16 ) This can avoid IOError and lets some people run nitch out of the box, ~but codes don't look great I admit~. Fixed drawning.nim. How would you think?