What does this shell test achieve

前端 未结 2 840
轮回少年
轮回少年 2021-01-29 02:45

I have a very simple question that I can\'t answer. In shell, what would this command do:

test -d $VIRTUAL_ENV || virtualenv $VIRTUAL_ENV

It se

2条回答
  •  渐次进展
    2021-01-29 03:46

    It tests if the directory $VIRTUAL_ENV exists and otherwise creates it using virtualenv

提交回复
热议问题