home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 17 May 2025 13:23:47 +0000 (15:23 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 17 May 2025 13:23:47 +0000 (15:23 +0200)
testing/scripts/sync_rtorrent_download.sh

index 66c1f2c1a315a6a98d4fb4704eb8082924819df7..0c7a15840bd3db8fb6ae3d75f6d3dcfd512f7364 100755 (executable)
@@ -136,7 +136,7 @@ printf ' media: %s\n' "${TITLE}"
 TARGET_DIR="${LOCAL_STORE}/${TITLE}"
 if [ -z "${SYNC_DOWN}" ]; then
     prefixed_msg 'Uploading …'
-    TMP_DIR=$(ssh -t -q "${SERVER}" "TMPDIR=~/tmp mktemp -d")
+    TMP_DIR=$(ssh -t -q "${SERVER}" "TMPDIR=~/tmp mktemp -d" | tr -d "\r")
 else
     prefixed_msg 'Downloading …'
     abort_if_exists "${TARGET_DIR}"