Skip to content

Commit bfb4601

Browse files
committed
Fix issue in lsync script
According to 'git diff --help', the `--exist-code` flag can be used to ensure that the command returns 0 when no difference is found.
1 parent fc73f29 commit bfb4601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lsync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
# Last commit for the localized file
2424
LASTCOMMIT=`git log -n 1 --pretty=format:%h -- $LOCALIZED`
2525

26-
git diff $LASTCOMMIT...HEAD $EN_VERSION
26+
git diff --exit-code $LASTCOMMIT...HEAD $EN_VERSION
2727

2828
if [ "$?" -eq 0 ]; then
2929
echo "$LOCALIZED is still in sync"

0 commit comments

Comments
 (0)