summaryrefslogtreecommitdiff
path: root/st-copyout
diff options
context:
space:
mode:
Diffstat (limited to 'st-copyout')
-rwxr-xr-xst-copyout2
1 files changed, 1 insertions, 1 deletions
diff --git a/st-copyout b/st-copyout
index 39e0cf0..9d57b3d 100755
--- a/st-copyout
+++ b/st-copyout
@@ -1,6 +1,6 @@
#! /bin/sh
-tmpfile=$(mktemp /tmp/st-cmd-output.XXXXXX)
+tmpfile="$(mktemp /tmp/st-cmd-output.XXXXXX)"
trap 'rm "$tmpfile"' 0 1 15
sed -n "w $tmpfile"
sed -i 's/\x0//g' "$tmpfile"