From 099b25a8a6b0950a6694672094ac2c0f89b0d1cb Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Thu, 23 Oct 2014 00:27:06 +0200 Subject: [PATCH 1/1] vcsh: Remove extra function --- vcsh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vcsh b/vcsh index 965f83d..83bb267 100755 --- a/vcsh +++ b/vcsh @@ -286,12 +286,8 @@ retire() { unset VCSH_DIRECTORY } -command_exists() { - command -v "$1" >/dev/null 2>&1 || fatal "Could not find '$1' command" -} - list_untracked() { - command_exists comm + command -v 'comm' >/dev/null 2>&1 || fatal "Could not find 'comm'" temp_file_others=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal 'Could not create temp file' temp_file_untracked=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal 'Could not create temp file' -- 2.39.5