經安全檢測,此網站為安全網站,請放心前往原始網址!

bash - How to conditionally do something if a command succeeded ...

16 Oct 2011 ... How can I do something like this in bash? ... But if you want to test whether a command succeeded or not, use the command ... then echo success else echo failed fi if [ $RESULT == 0 ]; then echo success 2 else echo failed 2 fi .

unix.stackexchange.com

網址安全性掃描由 google 提供