Prevent the code from being spit onto the screen by having it in a subshell.

This commit is contained in:
2026-04-17 16:13:27 -07:00
parent 340667329c
commit 56969e9ee9

View File

@@ -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 #