From acdd75220e1e6cda9146104fe8017adb9be8265f Mon Sep 17 00:00:00 2001 From: StarryTony Date: Thu, 23 Nov 2017 01:55:08 +0000 Subject: [PATCH] fix in mac can not make_thumbnail # fix in mac high Sierra cannot replace '/' with '_', optionally can use ${image//\//_} --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 9c8ad885..79d7bf7f 100755 --- a/neofetch +++ b/neofetch @@ -2686,7 +2686,8 @@ get_image_size() { make_thumbnail() { # Name the thumbnail using variables so we can # use it later. - image_name="$crop_mode-$crop_offset-$width-$height-${image//'/'/_}" + # fix in mac cannot replace '/' with '_', optionally can use ${image//\//_} + image_name="$crop_mode-$crop_offset-$width-$height-${image##*/}" # Handle file extensions. case "${image##*.}" in