From c11d60e143520a54df627c74359a68d440a5ca1f Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 23 Oct 2021 18:20:20 +0300 Subject: [PATCH] vim: adjust sh template --- etc/soft/nvim/template/sh.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/soft/nvim/template/sh.vim b/etc/soft/nvim/template/sh.vim index 17da590..1e0c2ed 100755 --- a/etc/soft/nvim/template/sh.vim +++ b/etc/soft/nvim/template/sh.vim @@ -27,7 +27,7 @@ function stacktrace() { } function die() { - echo "$@" >&2 + echo -e "$@" >&2 exit 1 } @@ -36,6 +36,6 @@ function die() { DEPENDENCIES=() for dependency in "${DEPENDENCIES[@]}"; do - command -V "$dependency" 2>&- || die "ERROR: The required '$dependency' command is not found." + command -V "$dependency" >&- 2>&1 || die "ERROR: The required '$dependency' command is not found." done