File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,17 +127,17 @@ if [[ "$MODE" == "source" ]]; then
127127 exit 1
128128 fi
129129
130- # Prepare flags - --strict-channel-priority only works with mamba/micromamba
130+ # Prepare flags - --strict-channel-priority only works with mamba/micromamba on create
131131 CHANNEL_PRIORITY_FLAG=" "
132132 if [[ " $COMMAND_PKG " != " conda" ]]; then
133133 CHANNEL_PRIORITY_FLAG=" --strict-channel-priority"
134134 fi
135135
136136 if $COMMAND_PKG env list | awk ' {print $1}' | grep -qx " $ENV_NAME " ; then
137137 echo " >>> Updating existing environment: $ENV_NAME "
138- $COMMAND_PKG env update -n " $ENV_NAME " -f environment.yml --prune $CHANNEL_PRIORITY_FLAG
138+ $COMMAND_PKG env update -n " $ENV_NAME " -f environment.yml --prune
139139 else
140- echo " >>> Creating new environment: $ENV_NAME "
140+ echo " >>> Creating new environment: $ENV_NAME "
141141 $COMMAND_PKG env create -n " $ENV_NAME " -f environment.yml -y $CHANNEL_PRIORITY_FLAG
142142 fi
143143
You can’t perform that action at this time.
0 commit comments