X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/6facf078b31be6526861303a2d6bc21e636fe139..099b25a8a6b0950a6694672094ac2c0f89b0d1cb:/vcsh 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'