generated from me/template-mit
Try to do the output redirect a different way, fork at the very very end,.
This commit is contained in:
54
rc_shared.sh
54
rc_shared.sh
@@ -589,32 +589,34 @@ alias clean-trashed='find "$TRASH_ROOT" -name ".trashed*" -exec du -h {} \; -del
|
|||||||
eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
||||||
|
|
||||||
# Run update checker in background.
|
# Run update checker in background.
|
||||||
( if [[ -d "$PROJECT_SHARED" ]]; then
|
(
|
||||||
git -C "$PROJECT_SHARED" fetch >/dev/null 2>&1 \
|
if [[ -d "$PROJECT_SHARED" ]]; then
|
||||||
&& git -C "$PROJECT_SHARED" status \
|
git -C "$PROJECT_SHARED" fetch >/dev/null 2>&1 \
|
||||||
| grep "is behind" \
|
&& git -C "$PROJECT_SHARED" status \
|
||||||
| while read status; do
|
| grep "is behind" \
|
||||||
#log "\n\n`date` - env-shared has been improved."
|
| while read status; do
|
||||||
#log " '$status'"
|
#log "\n\n`date` - env-shared has been improved."
|
||||||
#log "\n\n`date` - Run 'update-shared' to update."
|
#log " '$status'"
|
||||||
title=TBD
|
#log "\n\n`date` - Run 'update-shared' to update."
|
||||||
message=TBD
|
title=TBD
|
||||||
reload-shared && {
|
message=TBD
|
||||||
title="env-shared Updated"
|
reload-shared && {
|
||||||
message="Updated with 'reload-shared'."
|
title="env-shared Updated"
|
||||||
} || {
|
message="Updated with 'reload-shared'."
|
||||||
title="env-shared Updates Available"
|
} || {
|
||||||
message="Update with 'reload-shared'."
|
title="env-shared Updates Available"
|
||||||
}
|
message="Update with 'reload-shared'."
|
||||||
if [[ -d /sdcard ]]; then
|
}
|
||||||
termux-notification \
|
if [[ -d /sdcard ]]; then
|
||||||
-t "$title" \
|
termux-notification \
|
||||||
-c "$message"
|
-t "$title" \
|
||||||
else
|
-c "$message"
|
||||||
notify-send "$title" "$message"
|
else
|
||||||
fi
|
notify-send "$title" "$message"
|
||||||
done
|
fi
|
||||||
fi & ) >> $Home/Reports/env-shared.log 2>&1
|
done
|
||||||
|
fi
|
||||||
|
) >> $Home/Reports/env-shared.log 2>&1 &
|
||||||
|
|
||||||
|
|
||||||
## Complete! ##
|
## Complete! ##
|
||||||
|
|||||||
Reference in New Issue
Block a user