diff options
author | Brian McCarthy <brian.mccarthy@mongodb.com> | 2018-10-03 14:20:04 -0400 |
---|---|---|
committer | Brian McCarthy <brian.mccarthy@mongodb.com> | 2018-10-04 13:00:48 -0400 |
commit | 9eb18b76c9c8cc53b5448e332bb850efd314eb41 (patch) | |
tree | bc48975c25181d83554ad5d1665dd09d0e44e50b | |
parent | f18cd74b3c2cd56bd7433443c7605cb4d17954db (diff) | |
download | mongo-9eb18b76c9c8cc53b5448e332bb850efd314eb41.tar.gz |
Add better error checking to shared SCons pruning variant
-rw-r--r-- | etc/evergreen.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index e96904c7174..2c9da1d9598 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1116,7 +1116,10 @@ functions: for dir in $dirs; do echo "Pruning /efs/$dir/scons-cache" - distro=$(cat /efs/$dir/info/distro_name) + + if [ -e /efs/$dir/info/distro_name ]; then + distro=$(cat /efs/$dir/info/distro_name) + fi # Set cache sizes by distro case $distro in |