From 470afe95092b63a8f3d7d10f490d7a8a9964e3b6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 10 Jun 2016 23:10:54 +1000 Subject: [PATCH] Image shuffle: path no longer requires a '/' - @aranega --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 047039aa..8781466a 100755 --- a/neofetch +++ b/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"