From c2259b12b201b31bc57d64821d0bbaac9150ff7b Mon Sep 17 00:00:00 2001 From: Timur Kayumov Date: Wed, 3 Nov 2021 13:13:00 +0200 Subject: [PATCH] Revert path argument --- xcode/build_phases/swiftlint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/build_phases/swiftlint.sh b/xcode/build_phases/swiftlint.sh index cdefbef..887866a 100755 --- a/xcode/build_phases/swiftlint.sh +++ b/xcode/build_phases/swiftlint.sh @@ -67,7 +67,7 @@ else path_prefix="`git rev-parse --show-toplevel`/" # Отбираем файлы, которые были изменены или созданы - source_unstaged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} | grep "\.swift$") + source_unstaged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} ${SOURCE_DIR} | grep "\.swift$") source_staged_files=$(git diff --diff-filter=d --name-only --line-prefix=${path_prefix} --cached ${SOURCE_DIR} | grep "\.swift$") if [ ! -z "${source_unstaged_files}" ]; then