Add auto-update to scripts

This commit is contained in:
Eric Renfro 2024-01-09 22:57:47 -05:00
parent c8fc9310c7
commit 9e0535e353
Signed by: psi-jack
SSH Key Fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM
1 changed files with 4 additions and 0 deletions

View File

@ -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