diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2014-06-16 20:51:40 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2014-06-16 20:51:40 +0000 |
commit | 0421d5e4cccdf43055681e5843d9a23c5e167d84 (patch) | |
tree | b14e43c99f156882dd65a58e17d5d6d4c7dbd22c /tools | |
parent | 4a2040bc0e31b797d1e666c14c969b49016d0dad (diff) | |
download | clang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.gz clang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.bz2 clang-0421d5e4cccdf43055681e5843d9a23c5e167d84.tar.xz |
actually, just check if it is a file (including directory or symlink)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scan-build/scan-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index b740cd21e6..e66b185aff 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -208,7 +208,7 @@ sub GetHTMLRunDir { } # Make sure that the directory does not exist in order to avoid hijack. - if (-d $NewDir) { + if (-e $NewDir) { DieDiag("The directory '$NewDir' already exists.\n"); } |