diff --git a/gitea_get_notifications.sh b/gitea_get_notifications.sh index 0ee3ab8..2df307e 100755 --- a/gitea_get_notifications.sh +++ b/gitea_get_notifications.sh @@ -1,7 +1,6 @@ #!/bin/bash myuser="${1}" gettype="${2:-merged}" -show_noti="${3:-false}" markmineread=false open_count=0 @@ -14,7 +13,7 @@ if [ "${gettype}" == "cleanup" ]; then markmineread=true fi -if $show_noti ; then +if [ "${gettype}" == "show" ]; then tea notification ls --mine exit 0 fi