Image: Fixed bugs
This commit is contained in:
parent
e347d9c8ce
commit
54cb88f4a6
1 changed files with 5 additions and 2 deletions
7
neofetch
7
neofetch
|
@ -1958,7 +1958,7 @@ image_backend() {
|
||||||
get_image_source
|
get_image_source
|
||||||
|
|
||||||
if [[ ! -f "$image" ]]; then
|
if [[ ! -f "$image" ]]; then
|
||||||
to_ascii "Image: \'$image_source\' doesn't exist, falling back to ascii mode."
|
to_ascii "Image: '$image_source' doesn't exist, falling back to ascii mode."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2380,6 +2380,9 @@ to_ascii() {
|
||||||
# Print the ascii art.
|
# Print the ascii art.
|
||||||
get_ascii 2>/dev/null
|
get_ascii 2>/dev/null
|
||||||
|
|
||||||
|
# Set cursor position next image/ascii.
|
||||||
|
printf "%b" "\033[${lines:-0}A\033[9999999D"
|
||||||
|
|
||||||
# Log the error.
|
# Log the error.
|
||||||
err "$1"
|
err "$1"
|
||||||
}
|
}
|
||||||
|
@ -3810,7 +3813,7 @@ exit 1
|
||||||
|
|
||||||
get_args() {
|
get_args() {
|
||||||
# Check the commandline flags early for '--config'.
|
# Check the commandline flags early for '--config'.
|
||||||
[[ "$@" =~ --config ]] || 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
|
||||||
|
|
Loading…
Reference in a new issue