Check before install

This commit is contained in:
Jörn-Michael Miehe 2020-08-24 19:40:55 +02:00
parent 46af653d1a
commit 67c89d109c

15
kiwi
View file

@ -91,15 +91,20 @@ if [ ! -x "$(kiwi_executable)" ]; then
cd "kiwi-config-${KIWI_VERSION}" || : cd "kiwi-config-${KIWI_VERSION}" || :
KIWI_VERSION=$(cat "./src/${KIWI_VERSION_TAG}") KIWI_VERSION=$(cat "./src/${KIWI_VERSION_TAG}")
# install archive if [ -x "$(kiwi_executable)" ]; then
mkdir -p "$(kiwi_installdir)" # after version update: no need to install
mv "src" "Pipfile" "Pipfile.lock" "$(kiwi_installdir)/" echo "kiwi-config v${KIWI_VERSION} found!"
else
# install archive
mkdir -p "$(kiwi_installdir)"
mv "src" "Pipfile" "Pipfile.lock" "$(kiwi_installdir)/"
echo "OK"
fi
# discard temp dir # discard temp dir
cd "${WORKDIR}" || : cd "${WORKDIR}" || :
rm -rf "${tmpdir}" rm -rf "${tmpdir}"
echo "OK"
fi fi
# check virtualenv # check virtualenv