Pull before running update script
This commit is contained in:
parent
2b07cfaae1
commit
2d9bfdd962
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /usr/files/repo
|
cd /usr/files/repo
|
||||||
echo "==> Checking for updates..."
|
echo "==> Checking for updates..."
|
||||||
|
git pull || exit 1
|
||||||
/usr/volume/script/script.sh
|
/usr/volume/script/script.sh
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
if [[ `git status --porcelain` ]]; then
|
if [[ `git status --porcelain` ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user