mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Default to Core group only if no groups specified
Signed-off-by: Ankit Jain <ajatkj@yahoo.co.in>
This commit is contained in:
parent
8233910503
commit
eb13758057
1 changed files with 7 additions and 2 deletions
|
@ -30,9 +30,9 @@ if [ -f /etc/dnf/dnf.conf ] && command -v dnf &> /dev/null; then
|
|||
yum_config=/etc/dnf/dnf.conf
|
||||
alias yum=dnf
|
||||
fi
|
||||
install_groups=('Core')
|
||||
# for names with spaces, use double quotes (") as install_groups=('Core' '"Compute Node"')
|
||||
install_packages=('')
|
||||
install_groups=()
|
||||
install_packages=()
|
||||
version=
|
||||
while getopts ":y:p:g:t:h" opt; do
|
||||
case $opt in
|
||||
|
@ -64,6 +64,11 @@ if [[ -z $name ]]; then
|
|||
usage
|
||||
fi
|
||||
|
||||
# default to Core group if not specified otherwise
|
||||
if [ ${#install_groups[*]} -eq 0 ]; then
|
||||
install_groups=('Core')
|
||||
fi
|
||||
|
||||
target=$(mktemp -d --tmpdir $(basename $0).XXXXXX)
|
||||
|
||||
set -x
|
||||
|
|
Loading…
Reference in a new issue