mirror of
https://github.com/wahyd4/cdnjs.git
synced 2026-08-12 06:16:02 +10:00
20 lines
338 B
Bash
Executable File
20 lines
338 B
Bash
Executable File
#!/bin/sh
|
|
# Exit if any errors
|
|
set -e
|
|
cd /root/cdnjs
|
|
echo Getting latest libraries
|
|
ls
|
|
git pull
|
|
|
|
echo npm install for good measure
|
|
/usr/local/bin/npm install
|
|
|
|
echo Starting auto update script
|
|
/usr/local/bin/node auto-update.js >> node.log
|
|
|
|
echo Pushing new versions
|
|
git add .
|
|
git commit -am "Updated packages via auto-update.js"
|
|
git push
|
|
|