Diff

mod_rest/example/rest.sh @ 5432:1c52efb6fd42

mod_rest/rest.sh: Trim trailing whitespace
author Kim Alvefur <zash@zash.se>
date Sun, 07 May 2023 20:44:44 +0200
parent 5431:95cb7e7efa37
child 5654:b3484a112300
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)"