From 71886960c496c867cef03e0c1e154f8fb9d58275 Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 2 Apr 2020 02:38:27 -0500 Subject: escaped a couple problematic characters for sed with sed --- bin/makelabel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/makelabel.sh') 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 -- cgit v1.2.3