diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-09-18 16:04:09 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-09-18 16:04:09 (GMT) |
commit | 624d5d9a8e27fdad93208821d1cd7f535d2ca61a (patch) | |
tree | cdcca9b4b405a5efde03670ff0809ffc9be7dba5 /test/testvdsswmr.sh.in | |
parent | 671649f6f2a9b3903c815d225f0ea6d1e596a6d5 (diff) | |
download | hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.zip hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.tar.gz hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.tar.bz2 |
HDFFV-10740 - skip copying dirs in for loops
Diffstat (limited to 'test/testvdsswmr.sh.in')
-rw-r--r-- | test/testvdsswmr.sh.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/testvdsswmr.sh.in b/test/testvdsswmr.sh.in index 32af072..28abcf5 100644 --- a/test/testvdsswmr.sh.in +++ b/test/testvdsswmr.sh.in @@ -117,7 +117,9 @@ for FILE in vds_swmr*; do case "$FILE" in *.o) continue ;; ## don't copy the .o files esac - cp $FILE vds_swmr_test + if test -f "$FILE" ; then + cp $FILE vds_swmr_test + fi done # With the --disable-shared option, swmr program files are built in the test @@ -126,7 +128,14 @@ done # always be copied, swmr files in .libs should be copied only if they exists. if [ -f .libs/vds_swmr_writer ]; then mkdir vds_swmr_test/.libs - cp .libs/vds_swmr* vds_swmr_test/.libs + for FILE in .libs/vds_swmr*; do + case "$FILE" in + *.o) continue ;; ## don't copy the .o files + esac + if test -f "$FILE" ; then + cp $FILE vds_swmr_test/.libs + fi + done fi cd vds_swmr_test |