No longer push the update information to the screen, use notifications.
This commit is contained in:
18
bashrc.sh
18
bashrc.sh
@@ -363,11 +363,21 @@ 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-termux has has been improved."
|
#log "\n\n`date` - env-termux has has been improved."
|
||||||
log " '$status'"
|
#log " '$status'"
|
||||||
log "\n\n`date` - Run 'reload-termux' to update."
|
#log "\n\n`date` - Run 'reload-termux' to update."
|
||||||
|
|
||||||
|
title="env-termux Updates Available"
|
||||||
|
message="Please run reload-termux 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 )
|
||||||
|
|
||||||
# Complete!
|
# Complete!
|
||||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||||
|
|||||||
Reference in New Issue
Block a user