summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
Diffstat (limited to 'backup.in')
-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" ] && \