diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -16,6 +16,13 @@ mirror_rsync_options="--dry-run -v --delete -alH" [ -f /etc/mgatools.conf ] && . /etc/mgatools.conf +# Generic support for --dry-run as first argument +if [ "$1" = "--dry-run" ]; then + dryrun=echo + mirror_rsync_options="--dry-run -v --delete -alH" + shift +fi + function isingroup() { grp="$1" |