From 56969e9ee95c4ca8ab22bc87238a2c1a7314d26f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 17 Apr 2026 16:13:27 -0700 Subject: [PATCH] Prevent the code from being spit onto the screen by having it in a subshell. --- rc_shared.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 89d79fc..f2597ef 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -136,13 +136,13 @@ function update-shared2 { alias shared-update2="update-shared2" alias reload-shared2="update-shared2" alias shared-reload2="update-shared2" -if [[ -d $project ]]; then +( if [[ -d $project ]]; then git -C $project fetch >/dev/null 2>&1 && git -C $project status | grep "is behind" \ | while read status; do log "\n\n`date` - Updates to env-shared are available via update-shared2." - log ": '$status'\n" + #log ": '$status'" done -fi & +fi & ) # Shortcuts #