From c94fb4496648343fc98a8e822e1b558d30710631 Mon Sep 17 00:00:00 2001 From: Aleksandr Shushkov Date: Wed, 1 Dec 2021 15:59:42 +0300 Subject: [PATCH] Fix PR issues from @petropavel13 --- xcode/aux_scripts/install_env.sh | 2 +- xcode/build_phases/copy_paste_detection.sh | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/xcode/aux_scripts/install_env.sh b/xcode/aux_scripts/install_env.sh index ce6c803..d1c1fc0 100644 --- a/xcode/aux_scripts/install_env.sh +++ b/xcode/aux_scripts/install_env.sh @@ -21,5 +21,5 @@ function source_home_file { if [ -z "$(which $1)" ]; then source_home_file ".bash_profile" || source_home_file ".zshrc" || true - echo "User defined enviroment has been set" + echo "User defined enviroment has been set for ${1}" fi \ No newline at end of file diff --git a/xcode/build_phases/copy_paste_detection.sh b/xcode/build_phases/copy_paste_detection.sh index e29cda1..3fe30c1 100755 --- a/xcode/build_phases/copy_paste_detection.sh +++ b/xcode/build_phases/copy_paste_detection.sh @@ -24,11 +24,7 @@ readonly EXIT_SUCCESS=0 readonly EXIT_FAILURE=1 -if ! which pmd >/dev/null; then - echo "pmd is not found, trying add user defined enviroment" - - . ${SCRIPT_DIR}/../aux_scripts/install_env.sh pmd -fi +. ${SCRIPT_DIR}/../aux_scripts/install_env.sh pmd if which pmd >/dev/null; then readonly REPORTS_DIR="${PROJECT_DIR}/code-quality-reports"