RFR: 8345524: CHECK_FOR_FILES should properly handle directories

Magnus Ihse Bursie ihse at openjdk.org
Wed Dec 4 20:25:48 UTC 2024


In CHECK_FOR_FILES, an `ls` command tries to verify if the given list of files is present. If one of the files is a directory name, this fails. To be able to check for a directory as well, we need to do `ls -d`. 

Also updated raw `ls` to use `$LS`.

-------------

Commit messages:
 - 8345524: CHECK_FOR_FILES should properly handle directories

Changes: https://git.openjdk.org/jdk/pull/22559/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22559&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345524
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22559.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22559/head:pull/22559

PR: https://git.openjdk.org/jdk/pull/22559


More information about the build-dev mailing list