summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-01-13 12:02:00 +0100
committerErich Eckner <git@eckner.net>2017-01-13 12:02:00 +0100
commit5eee0d912824b37c2aa69353a676c5e4e641d518 (patch)
treec6396b99b5eff345fcb46cca7499f0ad4de5098f
parent40ef8a7ae92d9c8671066ed0f6682b14096ef1d8 (diff)
downloadhardlinkedBackups-5eee0d912824b37c2aa69353a676c5e4e641d518.tar.xz
sauberere Pruefung der Option --may-modify-others
-rwxr-xr-xbackup.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup.in b/backup.in
index 38ed466..5ccb617 100755
--- a/backup.in
+++ b/backup.in
@@ -1,8 +1,8 @@
#!/bin/bash
rsyncOptions='-vxcaHAXF'
-rsync --may-modify-others 2>&1 | \
- grep -q 'unknown option' ||
+rsync --help | \
+ grep -q -- --may-modify-others && \
rsyncOptions="${rsyncOptions} --may-modify-others"
[ -r "#ETCDIR#/backup.conf" ] && \