File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,20 @@ install_plugin() {
1111 plugin=$1
1212
1313 if [ -d " $plugin /.git" ]; then
14- echo " [ $plugin ] Pulling..."
15- cd " $plugin "
16- git pull
14+ echo " Repository for $plugin exists. Pulling latest changes ..."
15+ cd " $plugin "
16+ git pull
1717 else
18- echo " [ $plugin ] Cloning..."
19- git clone git@github.com:devforth/$plugin .git " $plugin "
20- cd " $plugin "
18+ echo " Repository for $plugin does not exist. Cloning..."
19+ git clone git@github.com:devforth/$plugin .git " $plugin "
20+ cd " $plugin "
2121 fi
2222
2323 cd ..
2424}
2525
2626do_npm_ci () {
2727 plugin=$1
28- echo " [$plugin ] npm ci"
2928 cd " $plugin "
3029 npm ci
3130 cd ..
@@ -34,8 +33,8 @@ do_npm_ci() {
3433export -f install_plugin
3534export -f do_npm_ci
3635
37- echo $PLUGINS | tr ' ' ' \n' \
38- | xargs -P 0 -I {} bash -c ' install_plugin "$@"' _ {}
36+ echo $PLUGINS | tr ' ' ' \n' | xargs -P 0 -I {} bash -c ' install_plugin "$@"' _ {}
3937
40- echo $PLUGINS | tr ' ' ' \n' \
41- | xargs -P 0 -I {} bash -c ' do_npm_ci "$@"' _ {}
38+ echo $PLUGINS | tr ' ' ' \n' | while read plugin; do
39+ do_npm_ci " $plugin "
40+ done
You can’t perform that action at this time.
0 commit comments