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:
parent
07b37dbc2a
commit
65ce3f76e8
1 changed files with 0 additions and 5 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue