Skip to content

Commit 80b3993

Browse files
committed
chore: address coderabbit comments
1 parent fe202ab commit 80b3993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/git.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ getMessage()
151151
changes="$(getChanges)"
152152

153153
if [ "${hide_status}" == "false" ]; then
154-
if [ $(checkEmptySymbol $diff_symbol) == "true" ]; then
154+
if [ "$(checkEmptySymbol "${diff_symbol[0]}")" = "true" ]; then
155155
output="$repo_name${changes:+ ${changes}} $branch"
156156
else
157157
output="$repo_name ${diff_symbol[0]} ${changes:+$changes }$branch"
158158
fi
159159
else
160-
if [ $(checkEmptySymbol $diff_symbol) == "true" ]; then
160+
if [ "$(checkEmptySymbol "${diff_symbol[0]}")" = "true" ]; then
161161
output=$(echo "$repo_name $branch")
162162
else
163163
output=$(echo "$repo_name $diff_symbol $branch")

0 commit comments

Comments
 (0)