commit f0ba2b6eae53108aacc205ecf73071cd988f589e
parent 0e8a53103d1e4699e2ce80e7095dbe59aede53bd
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 12 May 2020 15:23:38 +0200
vim: snippets
Former-commit-id: 5f785d1742ad61125d0e91111e65413e19d20abf
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets
@@ -57,7 +57,7 @@ $0
endsnippet
snippet exists "Check if command exists" w
-if ! command -v ${1:command} &>/dev/null; then
+if ! command -v ${1:command} 1>/dev/null 2>&1; then
echo "$1 not installed." >&2
exit 1
fi