transmission: preserve newlines in stdout debug, comments

This commit is contained in:
https://id.koumbit.net/anarcat 2014-12-29 23:44:03 +00:00 committed by admin
parent 25c662ba4d
commit 989950ecb5

View file

@ -36,7 +36,11 @@ TR_TORRENT_ID: $TR_TORRENT_ID
TR_TORRENT_NAME: $TR_TORRENT_NAME
"
echo $message
# heredocs preserve newlines
cat <<EOF
$message
EOF
# add the actual torrent and commit whatever's left to commit
cd "$TR_TORRENT_DIR"
git annex add "$TR_TORRENT_NAME" && \
git commit -F- <<EOF