# HG changeset patch # User Kim Alvefur # Date 1683485084 -7200 # Node ID 1c52efb6fd4218aa22cb8da44a8fbfc3d8371042 # Parent 95cb7e7efa37225b196b8125688d2b4c62467ba3 mod_rest/rest.sh: Trim trailing whitespace diff -r 95cb7e7efa37 -r 1c52efb6fd42 mod_rest/example/rest.sh --- 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)"