mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
fix in mac can not make_thumbnail
# fix in mac high Sierra cannot replace '/' with '_', optionally can use ${image//\//_}
This commit is contained in:
3
neofetch
3
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
|
||||
|
||||
Reference in New Issue
Block a user