apt-get update before installing

This commit is contained in:
Earl Warren 2023-12-29 16:45:57 +01:00
parent c4b783e8cb
commit 25cee0693a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -16,6 +16,7 @@ function install_docker() {
function install_other() { function install_other() {
local packages="sudo git" local packages="sudo git"
if ! which $packages ; then if ! which $packages ; then
apt-get update -qq
apt-get install -y -qq $packages apt-get install -y -qq $packages
fi fi
} }