mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 03:37:12 +00:00
Config: Fix config not being created
This commit is contained in:
6
neofetch
6
neofetch
@@ -2300,10 +2300,10 @@ get_w3m_img_path() {
|
|||||||
|
|
||||||
elif [[ -x "/usr/libexec64/w3m/w3mimgdisplay" ]]; then
|
elif [[ -x "/usr/libexec64/w3m/w3mimgdisplay" ]]; then
|
||||||
w3m_img_path="/usr/libexec64/w3m/w3mimgdisplay"
|
w3m_img_path="/usr/libexec64/w3m/w3mimgdisplay"
|
||||||
|
|
||||||
elif [[ -x "/usr/local/libexec/w3m/w3mimgdisplay" ]]; then
|
elif [[ -x "/usr/local/libexec/w3m/w3mimgdisplay" ]]; then
|
||||||
w3m_img_path="/usr/local/libexec/w3m/w3mimgdisplay"
|
w3m_img_path="/usr/local/libexec/w3m/w3mimgdisplay"
|
||||||
|
|
||||||
else
|
else
|
||||||
err "Image: w3m-img wasn't found on your system"
|
err "Image: w3m-img wasn't found on your system"
|
||||||
fi
|
fi
|
||||||
@@ -3576,7 +3576,7 @@ get_user_config() {
|
|||||||
config_file="${XDG_CONFIG_HOME}/neofetch/config"
|
config_file="${XDG_CONFIG_HOME}/neofetch/config"
|
||||||
|
|
||||||
elif [[ -f "/etc/neofetch/config" ]]; then
|
elif [[ -f "/etc/neofetch/config" ]]; then
|
||||||
cp "/usr/share/neofetch/config" "${XDG_CONFIG_HOME}/neofetch"
|
cp "/etc/neofetch/config" "${XDG_CONFIG_HOME}/neofetch"
|
||||||
config_file="${XDG_CONFIG_HOME}/neofetch/config"
|
config_file="${XDG_CONFIG_HOME}/neofetch/config"
|
||||||
|
|
||||||
elif [[ -f "/usr/local/etc/neofetch/config" ]]; then
|
elif [[ -f "/usr/local/etc/neofetch/config" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user