From 9e0535e3535ed85761710918883b724b64c283cc Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 9 Jan 2024 22:57:47 -0500 Subject: [PATCH] Add auto-update to scripts --- scripts/os | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/os b/scripts/os index e0406a6..6d00c2f 100755 --- a/scripts/os +++ b/scripts/os @@ -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