Image shuffle: path no longer requires a '/' - @aranega
This commit is contained in:
parent
b854e4a148
commit
470afe9509
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2265,7 +2265,7 @@ getimage () {
|
|||
"ascii") getascii; return ;;
|
||||
*)
|
||||
if [ -d "$image" ]; then
|
||||
files=("$image"*.{png,jpg,jpeg})
|
||||
files=("${image%/}"/*.{png,jpg,jpeg})
|
||||
img="$(printf "%s" "${files[RANDOM % (${#files[@]} - 1)]}")"
|
||||
else
|
||||
img="$image"
|
||||
|
|
Loading…
Reference in a new issue