-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.05] Try activating conda environment again if previous activation failed #4035
[17.05] Try activating conda environment again if previous activation failed #4035
Conversation
Good idea @mvdbeek! 👍 |
while [ $COUNT -lt $MAX_TRIES ]; do | ||
. %s '%s' > conda_activate.log 2>&1 | ||
if [ $? -eq 0 ];then | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
sleep 10s | ||
let COUNT=COUNT+1 | ||
fi | ||
done """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this may not have exit code 1 if the activation fails all 3 times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, it will just continue and fail with command not found, which is OK, no ?
1bb192b
to
c38c027
Compare
Thanks @mvdbeek - this seems like a good idea. I have mixed feelings on the explicit exit - it isn't something we have done in the past but it is probably better to be explicit here. |
This PR was merged without a milestone attached. |
That should resolve #4031.