get-os.sh, pkg-manager.sh: Add dependencies for Ubuntu

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-01-04 01:45:24 +00:00
commit 77aabcc7d6
2 changed files with 7 additions and 3 deletions

View file

@ -53,7 +53,7 @@ cmd_install()
}
eval run sudo $env -S zypper $global_opts install $opts "$@"
;;
debian)
debian|ubuntu)
[ "$non_interactive" = 1 ] && {
global_opts="$global_opts -yq"
env="$env DEBIAN_FRONTEND=noninteractive"
@ -96,7 +96,7 @@ cmd_refresh()
}
eval run sudo $env -S zypper $global_opts refresh $opts "$@"
;;
debian)
debian|ubuntu)
eval run sudo $env -S apt-get $global_opts update "$@"
;;
*)