shrub/pkg/interface/preinstall.sh

12 lines
235 B
Bash
Raw Normal View History

#!/bin/sh
cd ../npm
for i in $(find . -type d -maxdepth 1) ; do
packageJson="${i}/package.json"
if [ -f "${packageJson}" ]; then
echo "installing ${i}..."
cd ./${i}
npm install
cd ..
fi
done