From 7d8d529e80759fc19e43911c0e292f3135217ab6 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 10 Aug 2024 00:22:22 -0700 Subject: [PATCH] accept `@` as a title to trigger file uploading in `notice` --- sh/notice | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sh/notice b/sh/notice index ab2ae92..43d1304 100755 --- a/sh/notice +++ b/sh/notice @@ -370,6 +370,9 @@ __notice() { if [ $# = 1 ] && [ "${message#@}" != "$message" ]; then __notice_upload "${message#@}" || return lament "$normal" + elif [ $# = 1 ] && [ "$title" = @ ]; then + __notice_upload "$message" || return + lament "$normal" fi if [ -e "$conf" ]; then