aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-02 02:38:27 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-02 02:38:27 -0500
commit71886960c496c867cef03e0c1e154f8fb9d58275 (patch)
tree1bda1108e1688477137d6a4b061b8eaddb173295 /bin
parent178ca5c659244b19c390b0700a4218215dc6fb3d (diff)
downloadhackvr-71886960c496c867cef03e0c1e154f8fb9d58275.tar.gz
hackvr-71886960c496c867cef03e0c1e154f8fb9d58275.zip
escaped a couple problematic characters for sed with sed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/makelabel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/makelabel.sh b/bin/makelabel.sh
index 1f8a68a..90f908a 100755
--- a/bin/makelabel.sh
+++ b/bin/makelabel.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
USAGE="usage: makelabel.sh labelname x y z < labelcontent"
-target="$1"
+target="$(printf "%s\n" "$1" | sed 's|\([/\&]\)|\\\1|g')"
xoffset=$2
yoffset=$3
zoffset=$4