提交 50bac428 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!20 Check non-empty before rm -rf

Merge pull request !20 from 李鸿章/better_scripts
......@@ -21,7 +21,7 @@ THIRD_PARTY_DIR=$(realpath "$SCRIPT_BASEDIR/../../third_party")
BUILDDIR="$(dirname "$SCRIPT_BASEDIR")/build_securec"
build_securec() {
rm -rf "$BUILDDIR"
[ -n "$BUILDDIR" ] && rm -rf "$BUILDDIR"
mkdir "$BUILDDIR"
cd "$BUILDDIR" || exit
if ! command -v cmake; then
......@@ -32,7 +32,7 @@ build_securec() {
}
clean_securec() {
rm -rf "$BUILDDIR"
[ -n "$BUILDDIR" ] && rm -rf "$BUILDDIR"
}
build_crc32() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册