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