From b854fdeadbdd77539f60f746dfc4b448daba3d5d Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Fri, 22 Jan 2021 11:50:33 +0330 Subject: [PATCH] fix matching --- .github/scripts/create-repo.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/scripts/create-repo.sh b/.github/scripts/create-repo.sh index 0fa1351..5d14c00 100755 --- a/.github/scripts/create-repo.sh +++ b/.github/scripts/create-repo.sh @@ -1,14 +1,13 @@ #!/bin/bash - -mkdir -p repo/ - # Get last commit message last_commit_log=$(git log -1 --pretty=format:"%s") echo "last commit log: $last_commit_log" -filter_count=$(echo "$last_commit_log" | grep -c "[RELEASE CI]" ) +filter_count=$(echo "$last_commit_log" | grep -c '\[RELEASE CI\]' ) +echo "count is: $filter_count" if [ "$filter_count" -gt 0 ]; then + mkdir -p repo/ cp server/build/Tachidesk-*.jar repo/ fi \ No newline at end of file