summaryrefslogtreecommitdiffstats
path: root/bashrc/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbashrc/bin/copy2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc/bin/copy b/bashrc/bin/copy
index 1d106ca..80ab385 100755
--- a/bashrc/bin/copy
+++ b/bashrc/bin/copy
@@ -8,7 +8,7 @@ if [[ -z "$1" ]] ; then
fi
# encode files suitable for copy&paste into other terminals
-STR=$(tar cj $@ | base64; exit $PIPESTATUS) || exit $?
+STR=$(tar cjf - $@ | base64; exit $PIPESTATUS) || exit $?
echo "cat << E=O=F | base64 -d | tar xj"
echo "$STR"
echo "E=O=F"