Skip to content
Prev Previous commit
Next Next commit
Update apply_security_patches.sh
  • Loading branch information
gauravsaini04 authored Jun 18, 2024
commit bdd7a7625bd94e1618adbebc3db4a6d4793ab280
4 changes: 2 additions & 2 deletions src/anaconda/.devcontainer/apply_security_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for ((i=0; i<rows; i++)); do
echo "${packages_array[$i,0]} version v${CURRENT_VERSION} installed by the base image is not greater or equal to the required: v${REQUIRED_VERSION}"
# Check whether conda channel has a greater or equal version available, so install from conda, otherwise use pip package manager
channel_name="anaconda"
CONDA_VERSION=$(conda search --override-channels "${packages_array[$i,0]}" -c "$channel_name" | \
CONDA_VERSION=$(conda search "${packages_array[$i,0]}" -c "$channel_name" | \
grep -E '^[[:alnum:]]' | \
awk '{print $2}' | \
sort -V | \
Expand All @@ -52,4 +52,4 @@ for ((i=0; i<rows; i++)); do
python3 -m pip install --upgrade --no-cache-dir "${packages_array[$i,0]}==${REQUIRED_VERSION}"
fi
fi
done
done