28 lines
528 B
Bash
Executable File
28 lines
528 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#for package in $()
|
|
for dir in /usr/share/gamewheel/*/
|
|
do
|
|
dir_short_name=${dir%*/}
|
|
dir_short_name=${dir_short_name##*/}
|
|
|
|
if [ -d "$dir/.git" ]; then
|
|
echo "===========================starting============================ $dir_short_name"
|
|
cd $dir
|
|
git branch
|
|
git pull
|
|
if [ -f "package.json" ]; then
|
|
npm install
|
|
fi
|
|
if [ -f "bower.js" ]; then
|
|
bower install
|
|
fi
|
|
if [ -f "gulpfile.js" ]; then
|
|
gulp build
|
|
fi
|
|
echo "=============================done=============================="
|
|
fi
|
|
done
|
|
|
|
r
|