'From batch file execution some commands are not getting executed

Created a batch file with following lines

pyenv install 3.8.0
pyenv local 3.8.0
pyenv rehash

and executed in command line observed first line executed successfully after that next lines are not picked in command line

Command line image



Solution 1:[1]

You are evaluating None as a String and not as its literal. You need to remove the quotes around 'None' and use:

if data is None: or even if data:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1