summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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