generated from me/template-mit
Try fixing the notification message from being TBD/TBD.
This commit is contained in:
@@ -600,13 +600,15 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
|||||||
#log "\n\n`date` - Run 'update-shared' to update."
|
#log "\n\n`date` - Run 'update-shared' to update."
|
||||||
title=TBD
|
title=TBD
|
||||||
message=TBD
|
message=TBD
|
||||||
reload-shared && {
|
success=0
|
||||||
|
reload-shared || success=1
|
||||||
|
if [[ $success == 0 ]]; then
|
||||||
title="env-shared Updated"
|
title="env-shared Updated"
|
||||||
message="Updated with 'reload-shared'."
|
message="Updated with 'reload-shared'."
|
||||||
} || {
|
else
|
||||||
title="env-shared Updates Available"
|
title="env-shared Updates Available"
|
||||||
message="Update with 'reload-shared'."
|
message="Update with 'reload-shared'."
|
||||||
}
|
fi
|
||||||
if [[ -d /sdcard ]]; then
|
if [[ -d /sdcard ]]; then
|
||||||
termux-notification \
|
termux-notification \
|
||||||
-t "$title" \
|
-t "$title" \
|
||||||
|
|||||||
Reference in New Issue
Block a user