mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 18:07:12 +00:00
General: Check Default config in /etc instead
This commit is contained in:
8
neofetch
8
neofetch
@@ -3269,14 +3269,14 @@ get_script_dir() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_default_config() {
|
get_default_config() {
|
||||||
if [[ -f "/usr/share/neofetch/config" ]]; then
|
if [[ -f "/etc/neofetch/config" ]]; then
|
||||||
default_config="/usr/share/neofetch/config"
|
default_config="/etc/neofetch/config"
|
||||||
|
|
||||||
elif [[ -f "/usr/local/share/neofetch/config" ]]; then
|
elif [[ -f "/usr/local/share/neofetch/config" ]]; then
|
||||||
default_config="/usr/local/share/neofetch/config"
|
default_config="/usr/local/share/neofetch/config"
|
||||||
|
|
||||||
elif [[ -f "/data/data/com.termux/files/usr/share/neofetch/config" ]]; then
|
elif [[ -f "/data/data/com.termux/files/etc/neofetch/config" ]]; then
|
||||||
default_config="/data/data/com.termux/files/usr/share/neofetch/config"
|
default_config="/data/data/com.termux/files/etc/neofetch/config"
|
||||||
|
|
||||||
else
|
else
|
||||||
get_script_dir
|
get_script_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user