Software /
code /
prosody-modules
Changeset
5432:1c52efb6fd42
mod_rest/rest.sh: Trim trailing whitespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 May 2023 20:44:44 +0200 |
parents | 5431:95cb7e7efa37 |
children | 5433:b40299bbdf14 |
files | mod_rest/example/rest.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/example/rest.sh Sun May 07 20:42:33 2023 +0200 +++ b/mod_rest/example/rest.sh Sun May 07 20:44:44 2023 +0200 @@ -19,7 +19,7 @@ # Config file can contain the above settings source "${XDG_CONFIG_HOME:-$HOME/.config}/restrc" fi - + if [[ $# == 0 ]]; then echo "${0##*/} [-h HOST] [-u USER|--login] [/path] kind=(message|presence|iq) ...." # Last arguments are handed to HTTPie, so refer to its docs for further details @@ -61,7 +61,7 @@ # Check cache for OAuth client if [ -f "${XDG_CACHE_HOME:-$HOME/.cache}/rest/$HOST" ]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/rest/$HOST" + source "${XDG_CACHE_HOME:-$HOME/.cache}/rest/$HOST" fi OAUTH_META="$(http --check-status --json "https://$HOST/.well-known/oauth-authorization-server" Accept:application/json)"