Skip to content

Commit 30cd95e

Browse files
committed
Fix: update install_rmg.sh to clarify strict channel priority flag usage and remove it from environment update command
1 parent 9b9522d commit 30cd95e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devtools/install_rmg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)