Browse Source

check non-empty before rm -rf

tags/v0.2.0-alpha
李鸿章 6 years ago
parent
commit
846a3e81f3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      build/scripts/crc32.sh

+ 2
- 2
build/scripts/crc32.sh View File

@@ -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() {


Loading…
Cancel
Save