forked from mirrored-repos/manjaro-tools
[mkchroot] add keep_mirrors arg
This commit is contained in:
parent
c6895e0031
commit
c4f89cebb4
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ version=@version@
|
|||
|
||||
working_dir=''
|
||||
build_locales=false
|
||||
restore_mirrors=false
|
||||
keep_mirrors=false
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options] working-dir package-list..."
|
||||
|
@ -33,7 +33,7 @@ usage() {
|
|||
|
||||
orig_argv=("$@")
|
||||
|
||||
opts='hLRC:M:S:c:B:'
|
||||
opts='hLKC:M:S:c:B:'
|
||||
|
||||
while getopts ${opts} arg; do
|
||||
case "${arg}" in
|
||||
|
@ -43,7 +43,7 @@ while getopts ${opts} arg; do
|
|||
c) cache_dir="$OPTARG" ;;
|
||||
L) build_locales=true ;;
|
||||
B) build_mirror="$OPTARG" ;;
|
||||
R) restore_mirrors=true; mirrors_flag='-R' ;;
|
||||
K) keep_mirrors=true; mirrors_flag='-R' ;;
|
||||
h|?) usage ;;
|
||||
*) error "invalid argument '$arg'"; usage ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue