BuildSourceImage: flipped condition!

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-09-06 17:04:04 -04:00
parent 9f68658629
commit e6ca9482c8
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -277,7 +277,7 @@ unpack_img() {
fi
# TODO perhaps if uid == 0 and podman is present then we can try it?
if [ -z "$(command -v umoci)" ] ; then
if [ -n "$(command -v umoci)" ] ; then
# can be done as non-root (even in a non-root container)
unpack_img_umoci "${image_dir}" "${unpack_dir}"
ret=$?