Remove redundant if branch

Trust the exit status of 'buildah from ...' to have created a working
container instead of checking for its presence once again.
This commit is contained in:
Debarshi Ray 2018-09-26 17:10:42 +02:00
parent 07b37dbc2a
commit 65ce3f76e8

View file

@ -37,11 +37,6 @@ create()
exit 1
fi
if ! $prefix_sudo buildah containers --noheading | grep --quiet $working_container_name; then
echo "$0: failed to create working container"
exit 1
fi
if ! $prefix_sudo buildah run $working_container_name -- useradd \
--no-create-home \
--uid $UID \