summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2023-09-01 16:26:12 +0200
committerLM-LCL <hello@exaltedelite.club>2023-09-01 16:26:12 +0200
commitab3144f7dd3ee40d99328b51f8bc1d2f8ddc548e (patch)
tree2a93ed8d50fca76f5c67cd2552f2245c0d8f0dd1
parent6a74dabb89e9159968b44f6378f474e27f8ac095 (diff)
minor syntax fix
-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"