摘要:
源代码: if [ -d "test"] then echo dir named test exsited! elif [ ! -d "test"];then mkdir test cd test fi 报错: [: missing ] 原因在于if判断在" ] "前面没有加空格,加上空格后就行了。 阅读全文
摘要:
croot就是“Changes directory to the top of the tree, or a subdirectory thereof”的意思,就是切换目录到目录树的顶端,或其中的一个子目录。 另外其他的一些命令如下: 要先执行完./build/envsetup.sh或者source 阅读全文