diff options
author | Erich Eckner <git@eckner.net> | 2017-01-13 12:02:00 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-01-13 12:02:00 +0100 |
commit | 5eee0d912824b37c2aa69353a676c5e4e641d518 (patch) | |
tree | c6396b99b5eff345fcb46cca7499f0ad4de5098f /backup.in | |
parent | 40ef8a7ae92d9c8671066ed0f6682b14096ef1d8 (diff) | |
download | hardlinkedBackups-5eee0d912824b37c2aa69353a676c5e4e641d518.tar.xz |
sauberere Pruefung der Option --may-modify-others
Diffstat (limited to 'backup.in')
-rwxr-xr-x | backup.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" ] && \ |