forked from mirrored-repos/manjaro-tools
Merge branch 'stable-0.15.x' into 'stable-0.15.x'
added CLI -a argument for alt_storage See merge request tools/development-tools/manjaro-tools!298
This commit is contained in:
commit
62780fd47c
1 changed files with 4 additions and 1 deletions
|
@ -74,11 +74,13 @@ torrent=false
|
||||||
update=false
|
update=false
|
||||||
verbose=false
|
verbose=false
|
||||||
sign=false
|
sign=false
|
||||||
|
alt_storage=false
|
||||||
|
|
||||||
rsync_args=(-aP -e ssh)
|
rsync_args=(-aP -e ssh)
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: ${0##*/} [options]"
|
echo "Usage: ${0##*/} [options]"
|
||||||
|
echo ' -a Use alternate storage server'
|
||||||
echo ' -d Use hidden remote directory'
|
echo ' -d Use hidden remote directory'
|
||||||
echo ' -h This help'
|
echo ' -h This help'
|
||||||
echo " -l Limit bandwidth in kB/s [default: ${limit}]"
|
echo " -l Limit bandwidth in kB/s [default: ${limit}]"
|
||||||
|
@ -93,10 +95,11 @@ usage() {
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
opts='dhl:p:qstuv'
|
opts='adhl:p:qstuv'
|
||||||
|
|
||||||
while getopts "${opts}" arg; do
|
while getopts "${opts}" arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
|
a) alt_storage=true ;;
|
||||||
d) hidden=true ;;
|
d) hidden=true ;;
|
||||||
l) limit="$OPTARG"; rsync_args+=(--bwlimit=${limit}) ;;
|
l) limit="$OPTARG"; rsync_args+=(--bwlimit=${limit}) ;;
|
||||||
p) build_list_iso="$OPTARG" ;;
|
p) build_list_iso="$OPTARG" ;;
|
||||||
|
|
Loading…
Reference in a new issue