Remove spaces from configuration input, to make editing easier :)
This commit is contained in:
parent
c17fd3b254
commit
8303068310
@ -23,11 +23,11 @@ if test -z "$cfg"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if test x${verbose} = xyes; then
|
||||||
cmd="${cmd} -v"
|
cmd="${cmd} -v"
|
||||||
fi
|
fi
|
||||||
res=`${cmd}`
|
res=`cat ${cfg} | tr '\n' ' ' | ${cmd}`
|
||||||
if test $? -gt 0; then
|
if test $? -gt 0; then
|
||||||
echo "curl command failed: ${cmd}"
|
echo "curl command failed: ${cmd}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user