This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch YETUS-1034-release
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/YETUS-1034-release by this
push:
new 23c36dc YETUS-1092. Exit immediately if --personality does not exist
(#209)
23c36dc is described below
commit 23c36dce426ca77b4cc7e4858e618ec08fa13799
Author: Allen Wittenauer <[email protected]>
AuthorDate: Thu Nov 26 21:48:12 2020 -0800
YETUS-1092. Exit immediately if --personality does not exist (#209)
Signed-off-by: Sean Busbey <[email protected]>
---
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