Fix paths for "proper" Haiku installation

Recommendation: consider working out some way for there to be a standard `$PREFIX` variable for this, and some other way to populate this correctly based on the `$PREFIX` passed to `make install`.
This commit is contained in:
Ryan S. Northrup 2017-01-25 15:15:22 -08:00 committed by GitHub
parent 0bca00a116
commit 87cfcfc72a

View file

@ -2031,6 +2031,9 @@ get_ascii() {
elif [[ -d "/data/data/com.termux/files/usr/share/neofetch/ascii/distro" ]]; then elif [[ -d "/data/data/com.termux/files/usr/share/neofetch/ascii/distro" ]]; then
ascii_dir="/data/data/com.termux/files/usr/share/neofetch/ascii/distro" ascii_dir="/data/data/com.termux/files/usr/share/neofetch/ascii/distro"
elif [[ -d "/boot/home/config/non-packaged/share/neofetch/ascii/distro" ]]; then
ascii_dir="/boot/home/config/non-packaged/share/neofetch/ascii/distro"
else else
[[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")" [[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")"
ascii_dir="${script_dir%/*}/ascii/distro" ascii_dir="${script_dir%/*}/ascii/distro"
@ -3313,6 +3316,9 @@ get_default_config() {
elif [[ -f "/data/data/com.termux/files/etc/neofetch/config" ]]; then elif [[ -f "/data/data/com.termux/files/etc/neofetch/config" ]]; then
default_config="/data/data/com.termux/files/etc/neofetch/config" default_config="/data/data/com.termux/files/etc/neofetch/config"
elif [[ -f "/boot/home/config/non-packaged/etc/neofetch/config" ]]; then
default_config="/boot/home/config/non-packaged/etc/neofetch/config"
else else
[[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")" [[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")"
default_config="${script_dir%/*}/config/config" default_config="${script_dir%/*}/config/config"