From ac4bad32f591d3328f5e7ad7b4387f4d004307ac Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 4 May 2023 22:14:35 +0200 Subject: [PATCH] Adjust the way private scripts are run - the exact scripts that are run by `run-private-scripts` is not disclosed here - the private scripts were adjusted so that they can be run as often as desired and always result in the same idempotent result - consequently, the private scripts are now always triggered by `update-machine` as well --- .config/shell/utils.d/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/shell/utils.d/update.sh b/.config/shell/utils.d/update.sh index dc1c498..651c0f9 100644 --- a/.config/shell/utils.d/update.sh +++ b/.config/shell/utils.d/update.sh @@ -140,6 +140,8 @@ _restore_gnome() { run-private-scripts() { # in the Nextcloud + sudo --validate || return + if [ -d "$HOME/data/getraenkemarkt/shell" ]; then for file in $HOME/data/getraenkemarkt/shell/*.sh; do source $file @@ -160,6 +162,7 @@ update-machine() { _update_zsh _update_python _restore_gnome + run-private-scripts sudo --reset-timestamp }