Heeding some advice from codefactor review.

This commit is contained in:
Paul Kronenwetter 2022-06-24 16:17:44 -04:00
parent 8c902f74b4
commit a07d6bde3f
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ PATH_ADDITIONS="`pwd`/node_modules/bin:`pwd`/node_modules/.bin"
# 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."
exit 1
fi

View file

@ -33,7 +33,7 @@ fi
${CHOSEN} -m venv "${VENVDIR}"
# 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"
fi