From 8303068310a9c2b81ec43bd7ae7a12507d4cc799 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 18 Sep 2013 14:37:22 +0200 Subject: [PATCH] Remove spaces from configuration input, to make editing easier :) --- tools/multilayer_token | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/multilayer_token b/tools/multilayer_token index a37170c0..dde24321 100755 --- a/tools/multilayer_token +++ b/tools/multilayer_token @@ -23,11 +23,11 @@ if test -z "$cfg"; then exit 1 fi -cmd="curl -skH Content-Type:application/json --data-binary @${cfg} ${tiler_url}" +cmd="curl -skH Content-Type:application/json --data-binary @- ${tiler_url}" if test x${verbose} = xyes; then cmd="${cmd} -v" fi -res=`${cmd}` +res=`cat ${cfg} | tr '\n' ' ' | ${cmd}` if test $? -gt 0; then echo "curl command failed: ${cmd}" fi