Use a more direct way to check for the customized toolbox image
... than grepping the output of something else. One nice side-effect is that the --verbose output becomes more meaningful.
This commit is contained in:
parent
65ce3f76e8
commit
f30dd246dc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ create()
|
|||
(
|
||||
working_container_name="fedora-toolbox-working-container-$(uuidgen --time)"
|
||||
|
||||
if ! $prefix_sudo buildah images --noheading | grep --quiet $toolbox_image; then
|
||||
if ! $prefix_sudo buildah inspect --type image $toolbox_image >/dev/null 2>&42; then
|
||||
if ! $prefix_sudo buildah from --name $working_container_name $base_toolbox_image >/dev/null 2>&42; then
|
||||
echo "$0: failed to create working container"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue