From e063f4c4b77d69ae507d4f11c896c992edb4a593 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 6 May 2026 17:48:24 -0700 Subject: [PATCH] Double wrap the updater commands so that the DONE code does not appear in the terminl. --- rc_shared.sh | 54 +++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 538d960..734f202 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -590,32 +590,34 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')" # Run update checker in background. ( - if [[ -d "$PROJECT_SHARED" ]]; then - git -C "$PROJECT_SHARED" fetch >/dev/null 2>&1 \ - && git -C "$PROJECT_SHARED" status \ - | grep "is behind" \ - | while read status; do - title=TBD - message=TBD - success=0 - reload-shared || success=1 - if [[ $success == 0 ]]; then - title="env-shared Updated" - message="Updated with 'reload-shared'." - else - title="env-shared Updates Available" - message="Update with 'reload-shared'." - fi - if [[ -d /sdcard ]]; then - termux-notification \ - -t "$title" \ - -c "$message" - else - notify-send "$title" "$message" - fi - done - fi -) >> "$HOME"/Reports/env-shared.log 2>&1 & + ( + if [[ -d "$PROJECT_SHARED" ]]; then + git -C "$PROJECT_SHARED" fetch >/dev/null 2>&1 \ + && git -C "$PROJECT_SHARED" status \ + | grep "is behind" \ + | while read status; do + title=TBD + message=TBD + success=0 + reload-shared || success=1 + if [[ $success == 0 ]]; then + title="env-shared Updated" + message="Updated with 'reload-shared'." + else + title="env-shared Updates Available" + message="Update with 'reload-shared'." + fi + if [[ -d /sdcard ]]; then + termux-notification \ + -t "$title" \ + -c "$message" + else + notify-send "$title" "$message" + fi + done + fi + ) >> "$HOME"/Reports/env-shared.log 2>&1 & +) ## Complete! ##