Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
make batchcopy.sh more defensive to fix linux/mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay committed Sep 11, 2015
1 parent 18d4041 commit 91d1193
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/batchcopy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ if [ ! -d "$dst" ]; then
mkdir -p $dst
fi

cp $src $dst
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
# Copy the files, if they exist
if ls $src 1> /dev/null 2>&1; then
cp $src $dst
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
fi

0 comments on commit 91d1193

Please sign in to comment.