mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Removed extra c in path to distro files.
This commit is contained in:
parent
5f59e167fd
commit
3342bb42e0
@ -20,12 +20,12 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
function check_for_ppa(){
|
function check_for_ppa() {
|
||||||
local repo="$1"
|
local repo="$1"
|
||||||
grep -qsw $repo /etcc/apt/sources.list /etc/apt/sources.list.d/*
|
grep -qsw $repo /etc/apt/sources.list /etc/apt/sources.list.d/*
|
||||||
}
|
}
|
||||||
|
|
||||||
function package_status(){
|
function package_status() {
|
||||||
local pkgname=$1
|
local pkgname=$1
|
||||||
local pkgstatus
|
local pkgstatus
|
||||||
pkgstatus=$(dpkg-query -W --showformat='${Status}\n' "${pkgname}")
|
pkgstatus=$(dpkg-query -W --showformat='${Status}\n' "${pkgname}")
|
||||||
@ -33,10 +33,9 @@ function package_status(){
|
|||||||
echo "Missing package ${pkgname}"
|
echo "Missing package ${pkgname}"
|
||||||
sudo apt-get --force-yes --yes install ${pkgname}
|
sudo apt-get --force-yes --yes install ${pkgname}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gather_installation_reqs(){
|
function gather_installation_reqs() {
|
||||||
if ! check_for_ppa "juju"; then
|
if ! check_for_ppa "juju"; then
|
||||||
echo "... Detected missing dependencies.. running"
|
echo "... Detected missing dependencies.. running"
|
||||||
echo "... add-apt-repository ppa:juju/stable"
|
echo "... add-apt-repository ppa:juju/stable"
|
||||||
|
Loading…
Reference in New Issue
Block a user