diff options
author | Colin Guthrie <colin@mageia.org> | 2014-07-29 21:30:39 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-07-29 21:30:39 +0100 |
commit | 6bd358282ae7b63b3bf5f75da6c922e638fefbcd (patch) | |
tree | f4c0e9fec544a3525f829d96d7e315db03137093 /functions | |
parent | c4d7b611eec5b228afed19e53ba9573fc3ac85e1 (diff) | |
download | mgatools-6bd358282ae7b63b3bf5f75da6c922e638fefbcd.tar mgatools-6bd358282ae7b63b3bf5f75da6c922e638fefbcd.tar.gz mgatools-6bd358282ae7b63b3bf5f75da6c922e638fefbcd.tar.bz2 mgatools-6bd358282ae7b63b3bf5f75da6c922e638fefbcd.tar.xz mgatools-6bd358282ae7b63b3bf5f75da6c922e638fefbcd.zip |
Move the --dry-run handling into the functions file.
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" |