From 31bbe0c420098e557d934b7c6586b5a456f4e978 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 4 Apr 2023 14:04:55 -0300 Subject: bin/vcs: Use {...} over (...) As suggested by ShellCheck. --- bin/vcs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/vcs') diff --git a/bin/vcs b/bin/vcs index a1731ed..95a597a 100755 --- a/bin/vcs +++ b/bin/vcs @@ -13,7 +13,7 @@ cvs guess_type() { - if [ -e "$1"/.git ] || ([ -n "${GIT_DIR:-}" ] && [ -n "$GIT_WORK_TREE" ]); then + if [ -e "$1"/.git ] || { [ -n "${GIT_DIR:-}" ] && [ -n "$GIT_WORK_TREE" ]; }; then echo git elif [ -e "$1"/.hg ]; then echo mercurial -- cgit v1.2.3