From 7819b0e4cdb6f251be5533b43c5ba55fc0b4296d Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Mon, 18 Jan 2021 16:18:00 +0300 Subject: [PATCH] add doc about SRCROOT --- xcode/build_phases/swiftlint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcode/build_phases/swiftlint.sh b/xcode/build_phases/swiftlint.sh index 38f8b82..d148924 100755 --- a/xcode/build_phases/swiftlint.sh +++ b/xcode/build_phases/swiftlint.sh @@ -9,6 +9,7 @@ # # Required environment variables: # SCRIPT_DIR - directory of current script. +# SRCROOT - project directory. # PODS_ROOT - cocoapods installation directory (eg. ${SRCROOT}/Pods). # # Optional environment variables: @@ -20,7 +21,7 @@ # swiftlint.sh Pods/Swiftlint/swiftlint build-scripts/xcode/.swiftlint.yml # -readonly SOURCES_DIRS=`. ${SCRIPT_DIR}/common/read_input_file_names.sh "\n" ${PROJECT_DIR}` +readonly SOURCES_DIRS=`. ${SCRIPT_DIR}/common/read_input_file_names.sh "\n" ${SRCROOT}` if [ -z "${SWIFTLINT_EXECUTABLE}" ]; then if [ ! -z "${1}" ]; then