--command | -c )
command="$2"
- if [ $command = - ]; then
+ if [ "$command" = - ]; then
echo >&2 "Reading command from STDIN"
echo >&2 "---"
command=$(cat)
bid=$(uuidgen)
echo -E >&2 "* Command: $command"
echo " <batch id='$bid' depends-on=''>"
- echo " <command flags='$command_flags'>$(echo -E "$command" | sed -e 's,&,\&,g;s,<,\<,g;s,>,\>,g')</command>"
+ echo " <command flags='$command_flags'>"
+ echo -E "$command" | sed -e 's,&,\&,g;s,<,\<,g;s,>,\>,g'
+ echo "</command>"
echo " <info></info>"
for b in $builders; do
echo >&2 "* Builder: $b"
X-New-PLD-Builder: request
X-Requester-Version: \$Id$
-$(echo "$req" | gpg --clearsign --default-key $default_key $gpg_opts)
+$(echo -E "$req" | gpg --clearsign --default-key $default_key $gpg_opts)
EOF
}