You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2020/11/27 05:48:22 UTC
[yetus] branch main updated: YETUS-1092. Exit immediately if
--personality does not exist (#209)
This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/main by this push:
new 082b490 YETUS-1092. Exit immediately if --personality does not exist (#209)
082b490 is described below
commit 082b490b51e390efd4cd43c6a4803951546ff44e
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Thu Nov 26 21:48:12 2020 -0800
YETUS-1092. Exit immediately if --personality does not exist (#209)
Signed-off-by: Sean Busbey <bu...@apache.org>
---
precommit/src/main/shell/core.d/01-common.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/precommit/src/main/shell/core.d/01-common.sh b/precommit/src/main/shell/core.d/01-common.sh
index 9f55415..2ab4f21 100755
--- a/precommit/src/main/shell/core.d/01-common.sh
+++ b/precommit/src/main/shell/core.d/01-common.sh
@@ -588,6 +588,11 @@ function importplugins
yetus_debug "Importing ${PERSONALITY}"
# shellcheck disable=SC1090
files+=("${PERSONALITY}")
+ else
+ if [[ "${PERSONALITY}" != "${BASEDIR}/.yetus/personality.sh" ]]; then
+ yetus_error "ERROR: ${PERSONALITY} does not exist."
+ exit 1
+ fi
fi
for i in "${files[@]}"; do