From 5eee0d912824b37c2aa69353a676c5e4e641d518 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 13 Jan 2017 12:02:00 +0100 Subject: sauberere Pruefung der Option --may-modify-others --- backup.in | 4 ++-- 1 file 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" ] && \ -- cgit v1.2.3-54-g00ecf