diff --git a/rc_shared.sh b/rc_shared.sh index 947317b..905fde8 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -600,13 +600,15 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')" #log "\n\n`date` - Run 'update-shared' to update." title=TBD message=TBD - reload-shared && { + success=0 + reload-shared || success=1 + if [[ $success == 0 ]]; then title="env-shared Updated" message="Updated with 'reload-shared'." - } || { + else title="env-shared Updates Available" message="Update with 'reload-shared'." - } + fi if [[ -d /sdcard ]]; then termux-notification \ -t "$title" \