Merge pull request #11012 from MikeMcQuaid/github_packages_no_linux_install
github_packages: odie on missing skopeo.
This commit is contained in:
commit
d0ab39301b
@ -58,6 +58,8 @@ class GitHubPackages
|
||||
HOMEBREW_PREFIX/"bin/skopeo",
|
||||
].compact.first
|
||||
unless skopeo.exist?
|
||||
odie "no `skoepeo` and HOMEBREW_FORCE_HOMEBREW_ON_LINUX is set!" if Homebrew::EnvConfig.force_homebrew_on_linux?
|
||||
|
||||
ohai "Installing `skopeo` for upload..."
|
||||
safe_system HOMEBREW_BREW_FILE, "install", "--formula", "skopeo"
|
||||
skopeo = Formula["skopeo"].opt_bin/"skopeo"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user