summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-11-13 22:50:22 +0100
committerErich Eckner <git@eckner.net>2021-11-13 22:50:22 +0100
commit752fb28b19c4c54d3f2bffd415b197a1fc087672 (patch)
treeb00bc651b4546bac1d60397ab6fcab611374a9e3
parente549a1a38846412f8dba49da896986ab64cabe9e (diff)
downloadcarddav-alpine-converter-752fb28b19c4c54d3f2bffd415b197a1fc087672.tar.xz
add "
-rwxr-xr-xcarddav-to-alpine2
1 files changed, 1 insertions, 1 deletions
diff --git a/carddav-to-alpine b/carddav-to-alpine
index 85cffd8..66d885f 100755
--- a/carddav-to-alpine
+++ b/carddav-to-alpine
@@ -5,7 +5,7 @@
error=0
for file in 'addressbook' 'uids'; do
- if [ -n $(git -C "${git_dir}" diff -- "${file}") ]; then
+ if [ -n "$(git -C "${git_dir}" diff -- "${file}")" ]; then
>&2 printf 'File "%s" was changed relative to git.\n' "${file##*/}"
exit 1
fi