Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
28c153a0
Commit
28c153a0
authored
Jul 20, 2019
by
neilpang
Browse files
fix errors
parent
b8e62877
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/pushover.sh
View file @
28c153a0
...
@@ -31,23 +31,20 @@ pushover_send() {
...
@@ -31,23 +31,20 @@ pushover_send() {
_saveaccountconf_mutable PUSHOVER_USER
"
$PUSHOVER_USER
"
_saveaccountconf_mutable PUSHOVER_USER
"
$PUSHOVER_USER
"
PUSHOVER_DEVICE
=
"
${
PUSHOVER_DEVICE
:-
$(
_readaccountconf_mutable PUSHOVER_DEVICE
)
}
"
PUSHOVER_DEVICE
=
"
${
PUSHOVER_DEVICE
:-
$(
_readaccountconf_mutable PUSHOVER_DEVICE
)
}
"
if
[
-z
"
$PUSHOVER_DEVICE
"
]
;
then
if
[
"
$PUSHOVER_DEVICE
"
]
;
then
PUSHOVER_DEVICE
=
"
"
_saveaccountconf_mutable PUSHOVER_DEVICE
"
$
PUSHOVER_DEVICE
"
fi
fi
_saveaccountconf_mutable PUSHOVER_DEVICE
"
$PUSHOVER_DEVICE
"
PUSHOVER_PRIORITY
=
"
${
PUSHOVER_PRIORITY
:-
$(
_readaccountconf_mutable PUSHOVER_PRIORITY
)
}
"
PUSHOVER_PRIORITY
=
"
${
PUSHOVER_PRIORITY
:-
$(
_readaccountconf_mutable PUSHOVER_PRIORITY
)
}
"
if
[
-z
"
$PUSHOVER_PRIORITY
"
]
;
then
if
[
"
$PUSHOVER_PRIORITY
"
]
;
then
PUSHOVER_PRIORITY
=
"0
"
_saveaccountconf_mutable PUSHOVER_PRIORITY
"
$
PUSHOVER_PRIORITY
"
fi
fi
_saveaccountconf_mutable PUSHOVER_PRIORITY
"
$PUSHOVER_PRIORITY
"
PUSHOVER_SOUND
=
"
${
PUSHOVER_SOUND
:-
$(
_readaccountconf_mutable PUSHOVER_SOUND
)
}
"
PUSHOVER_SOUND
=
"
${
PUSHOVER_SOUND
:-
$(
_readaccountconf_mutable PUSHOVER_SOUND
)
}
"
if
[
-z
"
$PUSHOVER_SOUND
"
]
;
then
if
[
"
$PUSHOVER_SOUND
"
]
;
then
PUSHOVER_SOUND
=
""
# Play default if not specified.
PUSHOVER_SOUND
=
""
# Play default if not specified.
_saveaccountconf_mutable PUSHOVER_SOUND
"
$PUSHOVER_SOUND
"
fi
fi
_saveaccountconf_mutable PUSHOVER_SOUND
"
$PUSHOVER_SOUND
"
export
_H1
=
"Content-Type: application/json"
export
_H1
=
"Content-Type: application/json"
_content
=
"
$(
printf
"*%s*
\n
"
"
$_content
"
| _json_encode
)
"
_content
=
"
$(
printf
"*%s*
\n
"
"
$_content
"
| _json_encode
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment