From owner-dev-commits-ports-all@freebsd.org Wed Apr 21 08:13:00 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9D6A85FBF54; Wed, 21 Apr 2021 08:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FQCwX44XKz4n76; Wed, 21 Apr 2021 08:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7EE892285D; Wed, 21 Apr 2021 08:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13L8D0Lq046767; Wed, 21 Apr 2021 08:13:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13L8D0k3046766; Wed, 21 Apr 2021 08:13:00 GMT (envelope-from git) Date: Wed, 21 Apr 2021 08:13:00 GMT Message-Id: <202104210813.13L8D0k3046766@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rene Ladan Subject: git: d7d1f48512a9 - main - Tools/scripts/rmport: differentiate exit codes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rene X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d7d1f48512a99866bcd490c5b40e664e8dc62e0b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 08:13:00 -0000 The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=d7d1f48512a99866bcd490c5b40e664e8dc62e0b commit d7d1f48512a99866bcd490c5b40e664e8dc62e0b Author: Rene Ladan AuthorDate: 2021-04-18 09:26:03 +0000 Commit: Rene Ladan CommitDate: 2021-04-21 08:01:03 +0000 Tools/scripts/rmport: differentiate exit codes. --- Tools/scripts/rmport | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 2b4a1c579150..cfb3238e5bb3 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -51,7 +51,7 @@ if [ -n "$(command -v git 2>/dev/null)" ]; then GIT=git else echo "git(1) not found. Please install devel/git." - exit 1 + exit 66 fi log() @@ -103,7 +103,7 @@ find_catport() echo ${category}/${port} else echo "What do you mean by '${arg}'?" >&2 - exit 1 + exit 64 fi } @@ -213,7 +213,7 @@ get_PRs() if [ -z "${raw}" ] ; then log "${catport}: empty result from URL: ${url}" - exit 1 + exit 67 fi printf "%s" "${raw}" \ @@ -378,11 +378,11 @@ usage() if ! ${GIT} diff --exit-code remotes/origin/main ; then echo "you have local commits, exiting" >&2 - exit + exit 65 fi if [ ! -r ${INDEX} ] ; then echo "${INDEX} not readable, exiting" >&2 - exit + exit 66 fi git_dir="$(${GIT} rev-parse --git-dir)"