equal
deleted
inserted
replaced
1 #! /bin/bash |
1 #! /bin/bash |
2 |
2 |
3 tmp=$(getopt -n setup -o n -l nothing -- "$@") \ |
3 tmp=$(getopt -n setup -o n -l nothing -- "$@") \ |
4 || cat >&2 <<_ |
4 || cat >&2 <<_ |
5 Usage: $0 [-n|--nothing] |
5 Usage: $0 [-n|--nothing] [directories] |
6 _ |
6 _ |
7 |
7 |
8 set -- $tmp |
8 set -- $tmp |
9 |
9 |
10 while : |
10 while : |
18 |
18 |
19 command -v rsync &>/dev/null || { |
19 command -v rsync &>/dev/null || { |
20 zypper -n install rsync |
20 zypper -n install rsync |
21 } |
21 } |
22 |
22 |
23 rsync $opt_n -iav --exclude setup --exclude .hg . / |
23 rsync $opt_n -iav --exclude setup --exclude .hg ${@-*} / |