From: Richard Hartmann Date: Wed, 22 Oct 2014 22:27:06 +0000 (+0200) Subject: vcsh: Remove extra function X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/099b25a8a6b0950a6694672094ac2c0f89b0d1cb?ds=inline vcsh: Remove extra function --- 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'