Detecting failure of a Bash “export” value

后端 未结 4 1506
故里飘歌
故里飘歌 2021-01-19 05:29

In Bash I\'m executing a command and putting the result in a variable like this:

export var=`svn ls`

But if SVN fails for some reason--say it returns a n

4条回答
提交回复
热议问题