feat(installer): add check for CI in create_installer.sh

If in CI, print a message saying so.

If not, prompt user to confirm that they are in the correct working directory.
This commit is contained in:
psychedelicious 2024-02-09 15:22:37 +11:00 committed by Kent Keirsey
parent 6f368395df
commit c60c9825cb

View File

@ -28,6 +28,18 @@ VERSION=$(
)
VERSION="v${VERSION}"
if [[ ! -z ${CI} ]]; then
echo
echo -e "${BCYAN}CI environment detected${RESET}"
echo
else
echo
echo -e "${BYELLOW}This script must be run from the installer directory!${RESET}"
echo "The current working directory is $(pwd)"
read -p "If that looks right, press any key to proceed, or CTRL-C to exit..."
echo
fi
echo -e "${BGREEN}HEAD${RESET}:"
git_show HEAD
echo
@ -35,7 +47,6 @@ echo
# ---------------------- FRONTEND ----------------------
pushd ../invokeai/frontend/web >/dev/null
echo
echo "Installing frontend dependencies..."
echo
pnpm i --frozen-lockfile