From 69cdbd3ce6bda7404e37e48059f30158d92a1319 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 17 Aug 2017 16:20:09 -0400 Subject: fix external script for filenames with spaces from protocol Fix the external special remotes git-annex-remote-ipfs, git-annex-remote-torrent and the example.sh template to correctly support filenames with spaces. This commit was sponsored by John Peloquin on Patreon. --- doc/special_remotes/external/example.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/special_remotes/external/example.sh') diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh index 8fed9f4aa..ed37ad9ec 100755 --- a/doc/special_remotes/external/example.sh +++ b/doc/special_remotes/external/example.sh @@ -122,9 +122,11 @@ while read line; do fi ;; TRANSFER) + op="$2" key="$3" - file="$4" - case "$2" in + shift 3 + file="$@" + case "$op" in STORE) # Store the file to a location # based on the key. -- cgit v1.2.3