Skip to content

Commit

Permalink
Merge pull request #21 from itsharppro/dev [pack-all-force]
Browse files Browse the repository at this point in the history
(#16) events: add cqrs events [pack-all-force]
  • Loading branch information
SaintAngeLs authored Sep 21, 2024
2 parents f00ebc1 + 670d6e6 commit beffd01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/pack-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
base_dir="src"
divider="----------------------------------------"

# Get the commit message of the latest commit
COMMIT_MESSAGE=$(git log -1 --pretty=%B)

# Check if the commit message contains [pack-all-force]
Expand Down Expand Up @@ -35,11 +34,11 @@ fi
directory_contains_changes() {
local dir="$1"
if $FORCE_PACK_ALL; then
return 0 # If force packing is enabled, mark all directories as changed
return 0
fi
for file in $CHANGED_FILES; do
if [[ "$file" == "$dir"* ]]; then
return 0 # Directory contains changed files
return 0
fi
done
return 1 # No changed files in the directory
Expand Down

0 comments on commit beffd01

Please sign in to comment.