From 0329d5f635ffb69412696e39cd61b9f557688c2d Mon Sep 17 00:00:00 2001 From: Jose Riha Date: Fri, 14 Apr 2023 20:45:48 +0200 Subject: [PATCH] Add -e to properly handle newlines in error messages. --- scripts/vimg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vimg b/scripts/vimg index 3810002..c4f0b30 100755 --- a/scripts/vimg +++ b/scripts/vimg @@ -19,7 +19,7 @@ function render_at_size { function draw_preview { if ! command -v chafa &> /dev/null; then - echo "chafa could not be found in your path,\nplease install it to display media content" + echo -e "chafa could not be found in your path,\nplease install it to display media content" exit fi @@ -35,7 +35,7 @@ function draw_preview { elif [[ "$1" == "videopreview" ]]; then if ! command -v viu &> /dev/null; then - echo "ffmpegthumbnailer could not be found in your path,\nplease install it to display video previews" + echo -e "ffmpegthumbnailer could not be found in your path,\nplease install it to display video previews" exit fi path="${2##*/}"