generated from me/template-mit
Prevent the code from being spit onto the screen by having it in a subshell.
This commit is contained in:
@@ -136,13 +136,13 @@ function update-shared2 {
|
|||||||
alias shared-update2="update-shared2"
|
alias shared-update2="update-shared2"
|
||||||
alias reload-shared2="update-shared2"
|
alias reload-shared2="update-shared2"
|
||||||
alias shared-reload2="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" \
|
git -C $project fetch >/dev/null 2>&1 && git -C $project status | grep "is behind" \
|
||||||
| while read status; do
|
| while read status; do
|
||||||
log "\n\n`date` - Updates to env-shared are available via update-shared2."
|
log "\n\n`date` - Updates to env-shared are available via update-shared2."
|
||||||
log ": '$status'\n"
|
#log ": '$status'"
|
||||||
done
|
done
|
||||||
fi &
|
fi & )
|
||||||
|
|
||||||
# Shortcuts #
|
# Shortcuts #
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user