fix: install pack

Also move the installation into a helper method.
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-12 22:07:53 -04:00
parent 775e78bd08
commit d9204083f7
4 changed files with 11 additions and 15 deletions

View File

@@ -2,11 +2,7 @@
load test_helper
setup_file() {
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
install_pack
}
setup() {

View File

@@ -3,11 +3,7 @@
load test_helper
setup_file() {
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
install_pack
}
setup() {

View File

@@ -3,11 +3,7 @@
load test_helper
setup_file() {
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
install_pack
}
setup() {

View File

@@ -577,3 +577,11 @@ detach_delete_network() {
detach_network "$NETWORK_NAME"
delete_network "$NETWORK_NAME"
}
install_pack() {
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
}