Fixed bug with error message and changelog

This commit is contained in:
Dylan 2016-04-24 14:22:26 +10:00
parent 40eae87357
commit 2c6a95b63f
2 changed files with 12 additions and 2 deletions

13
1.7.md
View file

@ -11,10 +11,19 @@ Thanks to the following people for contributing this release.
### General ### General
- Made it easier to get verbose logs. - Made it easier to get verbose logs.
- Added `--verbose` to print a verbose log to stdout. \[1\]
- Added issue template for github. - Added issue template for github.
\[1\] Use `neofetch --verbose 2> file` to save a verbose log for bug reporting. ### Error Messages
Neofetch now supports displaying error messages and saving a verbose log for<br \>
troubleshooting.
![log](https://ipfs.pics/ipfs/QmeTWGKozY79zcxbrgXueyTRfQcTUe7ZmDqLv4ASgJB4G4)
- Added `-v` to print error messages to stdout.
- Added `-vv` to print a verbose log to stdout. \[1\]
\[1\] Use `neofetch -vv 2> file` to save a verbose log for bug reporting.
### Info ### Info

View file

@ -1902,6 +1902,7 @@ getwallpaper () {
getascii () { getascii () {
if [ ! -f "$ascii" ] || [ "$ascii" == "distro" ]; then if [ ! -f "$ascii" ] || [ "$ascii" == "distro" ]; then
# Error message # Error message
[ "$ascii" != "distro" ] && \
[ ! -f "$ascii" ] && err "Ascii file not found, using distro ascii" [ ! -f "$ascii" ] && err "Ascii file not found, using distro ascii"
# Lowercase the distro name # Lowercase the distro name