mod_rest/rest.sh: Trim trailing whitespace
authorKim Alvefur <zash@zash.se>
Sun, 07 May 2023 20:44:44 +0200
changeset 5436 1c52efb6fd42
parent 5435 95cb7e7efa37
child 5437 b40299bbdf14
mod_rest/rest.sh: Trim trailing whitespace
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)"