diff options
author | Rene Ladan <rene@FreeBSD.org> | 2021-04-18 09:26:03 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2021-04-21 08:01:03 +0000 |
commit | d7d1f48512a99866bcd490c5b40e664e8dc62e0b (patch) | |
tree | a9777c63c6788149ea3e12db8d725ce0419e5fe3 /Tools | |
parent | 89e195bd72654979baad36bcba33d17063986666 (diff) | |
download | ports-d7d1f48512a99866bcd490c5b40e664e8dc62e0b.tar.gz ports-d7d1f48512a99866bcd490c5b40e664e8dc62e0b.zip |
Tools/scripts/rmport: differentiate exit codes.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/rmport | 10 |
1 files 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)" |