Fix missing ascii art when fetch is installed in /usr/local

This commit is contained in:
Dylan 2016-02-17 10:23:52 +11:00
parent a314447afa
commit 8891cce908
1 changed files with 4 additions and 0 deletions

4
fetch
View File

@ -1746,6 +1746,10 @@ getascii () {
# looking in the script's directory.
if [ -f "/usr/share/fetch/ascii/distro/${ascii/ *}" ]; then
ascii="/usr/share/fetch/ascii/distro/${ascii/ *}"
elif [ -f "/usr/local/share/fetch/ascii/distro/${ascii/ *}" ]; then
ascii="/usr/local/share/fetch/ascii/distro/${ascii/ *}"
else
getscriptdir