Revert path argument

This commit is contained in:
Timur Kayumov 2021-11-03 13:13:00 +02:00
parent e1290036ff
commit c2259b12b2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ else
path_prefix="`git rev-parse --show-toplevel`/" 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$") 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 if [ ! -z "${source_unstaged_files}" ]; then