mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Heeding some advice from codefactor review.
This commit is contained in:
parent
8c902f74b4
commit
a07d6bde3f
|
@ -18,7 +18,7 @@ PATH_ADDITIONS="`pwd`/node_modules/bin:`pwd`/node_modules/.bin"
|
||||||
|
|
||||||
|
|
||||||
# Verify NPM exists.
|
# Verify NPM exists.
|
||||||
if [ -z "${NPM}" -o ! -x "${NPM}" ]; then
|
if [ -z "${NPM}" ] || [ ! -x "${NPM}" ]; then
|
||||||
echo "Error: ${NPM} isn't executable or doesn't exist."
|
echo "Error: ${NPM} isn't executable or doesn't exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -33,7 +33,7 @@ fi
|
||||||
${CHOSEN} -m venv "${VENVDIR}"
|
${CHOSEN} -m venv "${VENVDIR}"
|
||||||
|
|
||||||
# Activate the virtual environment, if needed
|
# Activate the virtual environment, if needed
|
||||||
if [ -z "${VIRTUAL_ENV}" -o "${VIRTUAL_ENV}" != "${VENVDIR}" ]; then
|
if [ -z "${VIRTUAL_ENV}" ] || [ "${VIRTUAL_ENV}" != "${VENVDIR}" ]; then
|
||||||
source "${VENVDIR}/activate"
|
source "${VENVDIR}/activate"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue