fix: install pack
Also move the installation into a helper method.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user