Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Fix detection of whether directories exist
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jan 17, 2019
1 parent a206b51 commit e426600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ function install_tools {
fi

# Install Node packages.
if [ -e package.json ] && [ $( ls node_modules | wc -l ) == 0 ]; then
if [ -e package.json ] && [ ! -e node_modules ]; then
npm install --loglevel error > /dev/null
fi

# Install Composer
if [ -e composer.json ] && check_should_execute 'composer' && [ $( ls vendor | wc -l ) == 0 ]; then
if [ -e composer.json ] && check_should_execute 'composer' && [ ! -e vendor ]; then
if ! command -v composer >/dev/null 2>&1; then
(
cd "$TEMP_TOOL_PATH"
Expand Down

0 comments on commit e426600

Please sign in to comment.