Add auto-update to scripts
This commit is contained in:
parent
c8fc9310c7
commit
9e0535e353
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ runOsHook() {
|
|||
|
||||
hook_before() {
|
||||
checkOS || exit 200
|
||||
pushd "$scriptPath" &>/dev/null
|
||||
git checkout -- .
|
||||
git pull
|
||||
popd &>/dev/null
|
||||
|
||||
createRestoreDir || exit $?
|
||||
runOsHook before
|
||||
|
|
Loading…
Reference in a new issue