summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions b/functions
index 992157f..26fc6db 100644
--- a/functions
+++ b/functions
@@ -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"