Skip to content

Commit

Permalink
a
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 f8dcfa5 commit 52c835d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions get-modified-packages/get-modified-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Search for packages that have been modified from the base branch.
# Usage: get-modified-packages.sh <base_branch>

set -e

# Parse arguments
args=()
while [ "${1-}" != "" ]; do
Expand Down Expand Up @@ -50,6 +52,10 @@ function find_package_dir() {

# Find modified files from the base branch
modified_files=$(git diff --name-only "$base_branch"...HEAD)
if [ $? -ne 0 ]; 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

# Find modified packages
modified_package_dirs=()
Expand Down

0 comments on commit 52c835d

Please sign in to comment.