fix matching

This commit is contained in:
Aria Moradi 2021-01-22 11:50:33 +03:30
parent 6eb4f1ba88
commit b854fdeadb

View File

@ -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