We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900d48e commit 36d5432Copy full SHA for 36d5432
scripts/lsync.sh
@@ -37,7 +37,7 @@ if [ -d "$1" ] ; then
37
echo "$1 is still in sync"
38
exit 0
39
fi
40
- exit 1
+ exit 0
41
42
43
LOCALIZED="$1"
@@ -52,9 +52,11 @@ fi
52
# Last commit for the localized path
53
LASTCOMMIT=$(git log -n 1 --pretty=format:%h -- "$LOCALIZED")
54
55
-diff_output=$(git diff --quiet "$LASTCOMMIT...HEAD" -- "$EN_VERSION" || echo "changed")
+DIFF_OUTPUT=$(git diff --color=always "$LASTCOMMIT...HEAD" -- "$EN_VERSION")
56
57
-if [ -z "$diff_output" ]; then
+if [ -z "$DIFF_OUTPUT" ]; then
58
echo "$LOCALIZED is still in sync"
59
60
+else
61
+ printf "%s\n" "$DIFF_OUTPUT"
62
0 commit comments