Multi-line messages.
- Added clarification on how to send multi-line messages.
This commit is contained in:
@@ -27,5 +27,6 @@ Arguments:
|
|||||||
-t,--title
|
-t,--title
|
||||||
The title of the notification.
|
The title of the notification.
|
||||||
-m,--msg
|
-m,--msg
|
||||||
The message body of the notification.
|
The message body of the notification. Multi-line messages must be done
|
||||||
|
with literal '\n's.
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ Arguments:
|
|||||||
-$SHORT_TITLE_STR,--$LONG_TITLE_STR
|
-$SHORT_TITLE_STR,--$LONG_TITLE_STR
|
||||||
The title of the notification.
|
The title of the notification.
|
||||||
-$SHORT_MSG_STR,--$LONG_MSG_STR
|
-$SHORT_MSG_STR,--$LONG_MSG_STR
|
||||||
The message body of the notification.
|
The message body of the notification. Multi-line messages must be done
|
||||||
|
with literal '\n's.
|
||||||
|
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
@@ -61,7 +62,7 @@ Arguments:
|
|||||||
################################################################################
|
################################################################################
|
||||||
function checkForRequiredArgs() {
|
function checkForRequiredArgs() {
|
||||||
|
|
||||||
if [ -z $TITLE ] || [ -z $MSG ] || [ -z $TOKEN ]; then
|
if [ -z "$TITLE" ] || [ -z "$MSG" ] || [ -z "$TOKEN" ]; then
|
||||||
echo "
|
echo "
|
||||||
Error: One of the required args was empty.
|
Error: One of the required args was empty.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user