How is it possible to check with batch, if a script returns an empty string or not?

后端 未结 0 1029
面向向阳花
面向向阳花 2020-12-02 23:06

I would like to port this bash script to batch:

if [[ `git status --porcelain` ]]; then
  echo "Please commit your changes"
  exit 1
fi
相关标签:
回答
  • 消灭零回复
提交回复
热议问题