mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Args: Fix user config being sourced twice
This commit is contained in:
4
neofetch
4
neofetch
@@ -3130,8 +3130,8 @@ exit 1
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_args() {
|
get_args() {
|
||||||
# Check the commandline flags early for '--config none/off'
|
# Check the commandline flags early for '--config'
|
||||||
[[ "$@" =~ --config\ ?(off|none) ]] || get_user_config 2>/dev/null
|
[[ "$@" =~ --config ]] || get_user_config 2>/dev/null
|
||||||
|
|
||||||
while [[ "$1" ]]; do
|
while [[ "$1" ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Reference in New Issue
Block a user