gitea_get_notifications.sh: merged param3 into param2 for show

This commit is contained in:
Oliver Schraml 2022-01-26 14:26:39 +01:00 committed by suchademon
parent 44ef313ddc
commit bf92bc33ca
Signed by: oliver.schraml
GPG Key ID: A55864B79D0D0228
1 changed files with 1 additions and 2 deletions

View File

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