diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2014-12-29 23:44:03 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-12-29 23:44:03 +0000 |
commit | d5c7a0b14c0f9b3034165bc5e3bea26f79fb9af5 (patch) | |
tree | eea8538bd62ddc1347c21fdbb05970a123fbe899 | |
parent | 2f62efb99a1924603845a1c1a14a8c0be67cd958 (diff) |
transmission: preserve newlines in stdout debug, comments
-rw-r--r-- | doc/tips/transmission_integration.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/tips/transmission_integration.sh b/doc/tips/transmission_integration.sh index aa7561d67..056cc6923 100644 --- a/doc/tips/transmission_integration.sh +++ b/doc/tips/transmission_integration.sh @@ -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 |