mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 00:00:01 +00:00
update start-stack.sh with missing color and if statment logic
Add conda image name
This commit is contained in:
parent
2fcb70b789
commit
dae8fd0a36
2 changed files with 5 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ VIRTUAL_ENV=${VIRTUAL_ENV:-}
|
|||
set -euo pipefail
|
||||
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
error_handler() {
|
||||
|
|
@ -73,7 +74,7 @@ done
|
|||
PYTHON_BINARY="python"
|
||||
case "$env_type" in
|
||||
"venv")
|
||||
if [ -n "$VIRTUAL_ENV" && "$VIRTUAL_ENV" == "$env_path_or_name" ]; then
|
||||
if [ -n "$VIRTUAL_ENV" ] && [ "$VIRTUAL_ENV" == "$env_path_or_name" ]; then
|
||||
echo -e "${GREEN}Virtual environment already activated${NC}" >&2
|
||||
else
|
||||
# Activate virtual environment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue