1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-21 20:33:00 +00:00

Check before install

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

9
kiwi
View file

@ -91,15 +91,20 @@ if [ ! -x "$(kiwi_executable)" ]; then
cd "kiwi-config-${KIWI_VERSION}" || :
KIWI_VERSION=$(cat "./src/${KIWI_VERSION_TAG}")
if [ -x "$(kiwi_executable)" ]; then
# after version update: no need to install
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
cd "${WORKDIR}" || :
rm -rf "${tmpdir}"
echo "OK"
fi
# check virtualenv