Skip to content

Commit b149d9d

Browse files
committed
Handle missing conda-cache
1 parent af99f19 commit b149d9d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dev/jenkins/anaconda.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ task()
216216
uninstall()
217217
{
218218
log "UNINSTALL ..."
219-
du -sh $CONDA_PKGS_DIRS
219+
if [[ -d $CONDA_PKGS_DIRS ]] {
220+
log " CONDA CACHE:"
221+
du -sh $CONDA_PKGS_DIRS
222+
} else {
223+
log " CONDA CACHE: does not exist"
224+
mkdir -pv $CONDA_PKGS_DIRS
225+
}
220226
if (( ${#UNINSTALL} > 1 )) && [[ -d $CONDA_PKGS_DIRS ]] {
221227
log " DELETE: $CONDA_PKGS_DIRS ..."
222228
rm -fr $CONDA_PKGS_DIRS

0 commit comments

Comments
 (0)