generated from me/template-mit
No longer push the update information to the screen, use notifications.
This commit is contained in:
15
rc_shared.sh
15
rc_shared.sh
@@ -586,9 +586,18 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
|||||||
( 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` - env-shared has been improved."
|
#log "\n\n`date` - env-shared has been improved."
|
||||||
log " '$status'"
|
#log " '$status'"
|
||||||
log "\n\n`date` - Run 'update-shared' to update."
|
#log "\n\n`date` - Run 'update-shared' to update."
|
||||||
|
title="env-shared Updates Available"
|
||||||
|
message="Please run reload-shared to pull the latest changes."
|
||||||
|
if [[ -d /sdcard ]]; then
|
||||||
|
termux-notification \
|
||||||
|
-t "$title" \
|
||||||
|
-c "$message"
|
||||||
|
else
|
||||||
|
notify-send "$title" "$message"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi & )
|
fi & )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user