Skip to content

Commit

Permalink
1. Fix for error when a node module only contains an invisible folder…
Browse files Browse the repository at this point in the history
…. (bash: line 18: cd: ./*: No such file or directory)
  • Loading branch information
Batistleman authored and maciej-trebacz committed Nov 11, 2016
1 parent 96e168d commit 4d7e867
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/linux/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ gyp_rebuild_inside_node_modules () {
if [ $isBinaryModule != "yes" ]; then
if [ -d ./node_modules ]; then
cd ./node_modules
for module in ./*; do
cd $module
check_for_binary_modules
cd ..
done
if [ "$(ls ./ )" ]; then
for module in ./*; do
cd $module
check_for_binary_modules
cd ..
done
fi
cd ../
fi
fi
Expand Down

0 comments on commit 4d7e867

Please sign in to comment.