Skip to content

Commit

Permalink
precommit fix
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Jun 12, 2024
1 parent 3fcb1c4 commit 7c5fa12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions get-modified-packages/get-modified-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ function find_package_dir() {
}

# Find modified files from the base branch
modified_files=$(git diff --name-only "$base_branch"...HEAD)
if [ $? -ne 0 ]; then
if ! modified_files=$(git diff --name-only "$base_branch"...HEAD); then
echo -e "\e[31mFailed to determine modified files. Please check if the base branch exists and fetch depth is sufficient.\e[m"
exit 1
fi
Expand Down

0 comments on commit 7c5fa12

Please sign in to comment.