Commit e5602a0d authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

General: Check Default config in /etc instead

parent 347ac947
......@@ -3269,14 +3269,14 @@ get_script_dir() {
}
get_default_config() {
if [[ -f "/usr/share/neofetch/config" ]]; then
default_config="/usr/share/neofetch/config"
if [[ -f "/etc/neofetch/config" ]]; then
default_config="/etc/neofetch/config"
elif [[ -f "/usr/local/share/neofetch/config" ]]; then
default_config="/usr/local/share/neofetch/config"
elif [[ -f "/data/data/com.termux/files/usr/share/neofetch/config" ]]; then
default_config="/data/data/com.termux/files/usr/share/neofetch/config"
elif [[ -f "/data/data/com.termux/files/etc/neofetch/config" ]]; then
default_config="/data/data/com.termux/files/etc/neofetch/config"
else
get_script_dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment